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

Feature Request - expanded allOf #147

Open
jackpap opened this issue Jul 13, 2022 · 2 comments
Open

Feature Request - expanded allOf #147

jackpap opened this issue Jul 13, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@jackpap
Copy link

jackpap commented Jul 13, 2022

In the generated doc, it would be nice that the allOf do not show up as such, but as a composed schema which is a concatenation of all the schemas in the allOf. This would hide the "allOf" from the reader of the documentation for whom allOf is not important since this is simply a syntax of the schema but not required in the json document being validated. Is this already a feature? If not would it be complicated to add?

@dblanchette dblanchette added the enhancement New feature or request label Jul 14, 2022
@pspot2
Copy link

pspot2 commented Oct 27, 2022

@jackpap do you have a schematic example of how this should look like?

allOf can contain if-then conditional branches, therefore the concatenation of its schemas doesn't make much sense in this case.

@jpage-godaddy
Copy link

I would also love this feature. I have a peculiar schema where fragments of properties are shared among many variations, so I've modeled them as sort of referencable mix-ins that I slap together with an allOf; the mix-ins themselves are not something I'd prefer to surface as a "first class" schemas; I basically just want a way to merge the properties together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants