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: Allow sibling elements with $ref that overrides the references definition #2744
Comments
$ref siblings as in your 2nd example are already supported in OpenAPI 3.1 / JSON Schema 2020-12. Schema $refs support any sibling keywords. Outside of schemas (e.g. in parameters or responses), $refs only support sibling |
It's important to note that although JSON Schema 2020-12 allows However, for meta-data keywords, such as https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.7.7.1.1 |
Please chase if the above didn't answer your question (I see the OP's thumbs up). |
Currently I can either specify a
$ref
or the complete property description. However there are use cases where refenced definition needs to be overridden, particularlydescription
.In the above example, I can't both reuse
Money
model and explain it's property semantics. It shouldn't be this way. I believe all the properties in$ref
should be overridable, but at the very leastdescription
should be.The text was updated successfully, but these errors were encountered: