Open meoyawn opened 5 months ago
I haven't looked at this carefully but two things:
#/components/schemas/{k}
means "look for a components/schemas/k key in this subschema" for each subschema you're looping over -- and that is (probably) incorrect -- you want #
to be the parent OpenAPI spec document, as that's presumably the one with the components/schemas
sub-properties. So maybe try only adding the parent document and then using $ref
s to yourSpecDocument#/components/schemas/foo
, but whether that works exactly correctly or not depends on any differences in OpenAPI.Support for OpenAPI would be greatly appreciated.
I'm trying to build a registry
but then it fails during validation
with
how do I correctly build a registry from an OpenAPI dict? Docs don't mention this
Thanks