Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow empty objects to be loaded from YAML #48958

@philwebb

Description

@philwebb

In Spring Boot 4.0.x and earlier OriginTrackedYamlLoader does not add properties for YAML entries that have empty object values.

For example, given the following YAML:

foo:
  bar: test
  baz: {}

A PropertySource is loaded that contains foo.bar but not foo.baz.

With spring-projects/spring-framework#36197 we now have an opportunity to also add foo.baz with an empty String value.

(we should replace null with an empty String to align with .properties and make #48920 easier to implement)

Metadata

Metadata

Assignees

Labels

status: blockedAn issue that's blocked on an external project changetype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions