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

Validate readOnly #57

Open
whitlockjc opened this issue Jan 12, 2016 · 1 comment
Open

Validate readOnly #57

whitlockjc opened this issue Jan 12, 2016 · 1 comment
Assignees

Comments

@whitlockjc
Copy link
Member

We need to validate the readOnly field: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#fixed-fields-13

@whitlockjc
Copy link
Member Author

This is actually quite difficult to implement. I'm not giving up but due to the difficulty, I'll likely park it alongside #28 and come back to it. Long story short, we would have to implement some of the JSON Schema parsing/validation just to support this. readOnly is allowed any place a properties property is allowed and that is infinitely nestable, in many locations (additionalProperties, allOf, items, ...) and would basically mean writing a bit of complicated logic to make sure we handle things.

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

No branches or pull requests

1 participant