Describe the bug versions:
spring-boot-starter-parent: 2.2.4.RELEASE spring-cloud-version: Greenwich.SR3
an empty array maps to an empty string rather than an empty array:
Sample fully reproducible example here (you will need to provide a config, example below)
The above sample code is about as simple as you can get. The config
test: []
maps to
{
"name": "roomservices",
"profiles": [
"default"
],
"label": null,
"version": "b74cfaa653c789de331a25f8b9a2113303b1fecd",
"state": null,
"propertySources": [
{
"name": "${homehere}/IdeaProjects/config/roomservices.yml",
"source": {
"test": ""
}
}
]
}
It should instead map to "test": []
edit: my example code includes an objectmapper bean, but that is not required to reproduce the bug.
Comment From: spencergibb
Does this still happen in Hoxton.SR6?
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: snowe2010
I'm still seeing this with Hoxton.SR6. Test branch: https://github.com/snowe2010/spring-cloud/tree/hoxton.sr6
Comment From: spencergibb
I'm unable to replicate on Hoxton.SR10 or 2020.0.2, so looks like this got fixed in the meantime.