Skip to content

Run tests in non-strict JSON mode, like real applications #942

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

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

swallez
Copy link
Member

@swallez swallez commented Feb 21, 2025

The JSON mappers used in tests are in strict mode and will reject unknown fields when deserializing objects. This was useful in the early days of the Java Client when the API spec was still in flux. We now have extensive validation for the API spec that catches these unknown fields.

This PR removes strict mode from test JSON mappers, so that they behave like regular applications.

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

Successfully merging this pull request may close these issues.

2 participants