Skip to content

Spring Cloud Config returns an empty string instead of an empty array #2746

Description

@IvanKodak

Describe the bug
After upgrading to the latest version of Spring Cloud Config, I encountered an issue where the cloud-config service returns an empty string ("") instead of an empty array ([]).

<spring-cloud.version>2024.0.0</spring-cloud.version>

Sample
Example:

config.yaml

network:
  urls: []

I expect to receive the following object:

{
  "network":{
    "urls":[]
  }
}

However, I receive this instead:

{
  "network":{
    "urls":""
  }
}

I noticed a similar issue in the past, which might be related to this problem as well.
#1572

Could you please investigate the cause of this issue as soon as possible?
Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions