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

"additionalProperties: false" for struct annotated with serde "#[serde(deny_unknown_fields)]" #30

Merged
merged 1 commit into from
May 16, 2020

Conversation

dkourilov
Copy link
Contributor

As discussed in #27 as well as TODO in the code.

If a struct is annotated with #[serde(deny_unknown_fields)], the schema should have additionalProperties: false.

@GREsau
Copy link
Owner

GREsau commented May 16, 2020

Thanks for the PR!

@GREsau GREsau merged commit 1190b1f into GREsau:master May 16, 2020
@GREsau
Copy link
Owner

GREsau commented May 16, 2020

This change is now published to crates.io in v0.7.4

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.

None yet

2 participants