-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support schemas inside of additionalProperties
#108
Comments
This comment has been minimized.
This comment has been minimized.
Maybe the viewer's internal logic could turn |
This could be considered "OpenAPI v3.1 Compatibility" work, as this was not supported in prior versions and is now. http://json-schema.org/understanding-json-schema/reference/object.html#additional-properties |
additionalProperties is part of JSON Schema Draft 4, and a quite important part of it, as it's needed to represent value maps. |
This bug is a major inconvenience |
Any update on this? It's hard to recommend Elements be used when a fairly basic feature is missing. This makes it so maps are just documented as |
If it could help anyone, I started a viewer project called docusaurus-json-schema-plugin which supports additionalProperties . I had that need as well ... If needed, you can migrate your schema from draft-04 to draft-07 using ajv-cli |
It seems to be working as of 8.0.2 |
Describe the bug
When I have a JSON schema that defines further schema constraints inside of
additionalProperties
...JSV does not render them properly in the UI.To Reproduce
Sample JSON Schema
Sample JSON object that would work with schema above
JSV Configuration
Expected behavior
My expectation is that the schema I provide inside
additionalProperties
is rendered in some way.Additional context
Add any other context about the problem here.
Screenshots
Environment
The text was updated successfully, but these errors were encountered: