Skip to content

Preserve bracketed YAML map keys#37032

Open
Develop-KIM wants to merge 1 commit into
spring-projects:mainfrom
Develop-KIM:fix-yaml-bracketed-map-keys
Open

Preserve bracketed YAML map keys#37032
Develop-KIM wants to merge 1 commit into
spring-projects:mainfrom
Develop-KIM:fix-yaml-bracketed-map-keys

Conversation

@Develop-KIM

@Develop-KIM Develop-KIM commented Jul 9, 2026

Copy link
Copy Markdown

Closes gh-27020

This preserves YAML map keys that already start with [ by flattening them as literal map keys instead of treating them like collection indexes.

Verification:

  • ./gradlew :spring-beans:test --tests org.springframework.beans.factory.config.YamlPropertiesFactoryBeanTests.loadNestedMapWithBracketedKey
  • ./gradlew :spring-beans:test --tests org.springframework.beans.factory.config.YamlPropertiesFactoryBeanTests
  • ./gradlew :spring-beans:test --tests org.springframework.beans.factory.config.YamlProcessorTests

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 9, 2026
Signed-off-by: Develop-KIM <kimdonghwan913@gmail.com>
@Develop-KIM Develop-KIM force-pushed the fix-yaml-bracketed-map-keys branch from f3cb513 to 1ca65c4 Compare July 9, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YamlPropertiesFactoryBean incorrect flatten nested map to properties when map key contains escaped brackets

2 participants