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

Metadata for Schema #337

Open
pmayer opened this issue Nov 6, 2018 · 2 comments
Open

Metadata for Schema #337

pmayer opened this issue Nov 6, 2018 · 2 comments

Comments

@pmayer
Copy link

pmayer commented Nov 6, 2018

I'm using converter.schema2jsonschema(schema) in a project and want to set "additionalProperties" for the generated schema and/or nested schemas in it. Is this possible? I only found documentation on setting it in metadata for a field.

@sloria
Copy link
Member

sloria commented Feb 3, 2019

This was suggested in #208 but we never ended up supporting schema-level metadata (only field metadata is currently supported). I'm still open to adding it, though I'd like to know more about people's use cases before adding it to the codebase.

@pmayer
Copy link
Author

pmayer commented Feb 12, 2019

Well, in my use case I have a postgres json field in the back end which should contain different objects depending on another field. This is defined and validated against jsonschemas generated via converter.schema2jsonschema(schema) and provided to the front end via a django rest framework api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants