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

allOf and validating the json data #150

Open
benjamin-mogensen opened this issue Mar 7, 2023 · 1 comment
Open

allOf and validating the json data #150

benjamin-mogensen opened this issue Mar 7, 2023 · 1 comment

Comments

@benjamin-mogensen
Copy link

This is maybe more a question - using allOf structures with json schema you will have to repeat the properties from the previous sibling schemas as empty properties in the last of the allOf schemas in order to ensure that the properties are allowed and that you are able to set additionalProperties to false on the last schema to avoid allowing consumers to send irrelevant data.

I don't see that approach anywhere in you OAS so I am wondering how you have solved the problem of not allowing additional properties to be send and at the same Tim be able to validate that the json sent is compliant to the total schema of the allOf.

@HenrikHL
Copy link
Contributor

HenrikHL commented Aug 3, 2023

@douradofrazer do you have anything to add regarding the comment above from @benjamin-mogensen ?

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

No branches or pull requests

2 participants