Skip to content
New issue

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

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

Already on GitHub? # to your account

Support #[serde(deny_unknown_fields)] #812

Closed
jayvdb opened this issue Dec 1, 2023 · 1 comment · Fixed by #816
Closed

Support #[serde(deny_unknown_fields)] #812

jayvdb opened this issue Dec 1, 2023 · 1 comment · Fixed by #816

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Dec 1, 2023

#[serde(deny_unknown_fields)] on a struct should result in additionalProperties: false in the outputted schema.

c.f. https://json-schema.org/understanding-json-schema/reference/object#additionalproperties

@juhaku
Copy link
Owner

juhaku commented Dec 3, 2023

Great, good that you took the initiative to implement the feature. Recently I have had close to no time to invest in the utoipa.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants