Skip to content

ARTEMIS-6220 Emit scalar properties first - #6659

Open
lavocatt wants to merge 1 commit into
apache:mainfrom
lavocatt:fixjsonorderinguri
Open

ARTEMIS-6220 Emit scalar properties first#6659
lavocatt wants to merge 1 commit into
apache:mainfrom
lavocatt:fixjsonorderinguri

Conversation

@lavocatt

@lavocatt lavocatt commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Split loadJsonObject/loadYamlMap into two passes — scalars first, then nested objects — so that discriminator values like uri are always set before a lazy-init getter (e.g. getTransportConfigurations) can fire during object path resolution. Without this, key ordering in the source file could cause silent data loss.

Assisted-by: Claude Opus 4.6 noreply@anthropic.com

Split loadJsonObject/loadYamlMap into two passes — scalars first, then
nested objects — so that discriminator values like uri are always set
before a lazy-init getter (e.g. getTransportConfigurations) can fire
during object path resolution. Without this, key ordering in the source
file could cause silent data loss.

Assisted-by: Claude Opus 4.6
loadJsonEntries(keySurroundString, parentKey, jsonObject, true);
}

private void loadJsonEntries(String keySurroundString, String parentKey, JsonObject jsonObject, boolean objects) {

@gtully gtully Sep 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a better variable name for 'boolean objects' possible, parseObjects? Just to ease understanding

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants