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

Support readOnly/writeOnly properties next to a $ref #14

Open
bijancn opened this issue Aug 25, 2020 · 1 comment
Open

Support readOnly/writeOnly properties next to a $ref #14

bijancn opened this issue Aug 25, 2020 · 1 comment
Assignees

Comments

@bijancn
Copy link

bijancn commented Aug 25, 2020

Note that this is not compatible with OpenAPI 3.0.3 which states that the $ref should replace everything. However, in OpenAPI 3.1.0 will be compatible to JSON schema which allows in 2019-09 to add any keywords next to a $ref. In older versions JSON schema also didn't have this but they figured out that it's more intuitive like this rather than using allOf as a workaround. We already used this syntax for adding defaults, so we will continue to be slightly ahead of OpenAPI (that is until 3.1.0 is released which is currently in RC0).

@bijancn bijancn self-assigned this Aug 25, 2020
@Stefanqn
Copy link
Contributor

since we're using the openAPI parser internally, it would be fine for me to use RC0 in this case

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

Successfully merging a pull request may close this issue.

2 participants