Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not try to coerce input values for properties #2530

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

sandwwraith
Copy link
Member

that do not have default values

Trying so leads to confusing errors about missing values despite a json key actually present in the input.

Fixes #2529

…ault values

Trying so leads to confusing errors about missing values despite a json key actually
present in the input.

Fixes #2529
@@ -287,7 +287,7 @@ public class JsonBuilder internal constructor(json: Json) {
public var prettyPrintIndent: String = json.configuration.prettyPrintIndent

/**
* Enables coercing incorrect JSON values to the default property value in the following cases:
* Enables coercing incorrect JSON values to the default property value (if exists) in the following cases:
Copy link
Contributor

Choose a reason for hiding this comment

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

M.b. if specified?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think if specified may be incorrectly read as if coerceInputValues = true is specified

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