json-schema-for-humans
json-schema-for-humans copied to clipboard
Feature Request - expanded allOf
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?
@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.
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.