-
Notifications
You must be signed in to change notification settings - Fork 9.1k
editorial: field not explicitly required can be considered optional #2470
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
Comments
@jasonbstanding does this cover the issue you raised a couple of weeks ago? |
@ioggstream was this related to another issue or discussion? (sorry, I realise it's been a while!) |
iirc it was open to suggest a more clean language in the spec I don't remember if expressions like the above are still present in the latest specs. The general advise still remains. |
@OAI/tsc review request: We should either decide to do this and do it, or close this issue. It's a straightforward yes or no question. |
I think we could add a note about anything that isn't required being considered optional, if it would make it clearer to anyone. |
@lornajane we already have that note at the top of the whole "Schema" (meaning structure of OAS, not JSON Schema) section (3.0.3 §4.7; 3.1.0 §4.8):
|
We discussed this in a TDC meeting and since we have required fields clearly marked and an overall remark about non-required fields being optional by default, we agreed not to add optional to all other fields. I suggested that it does not improve readability and was not contradicted. I do want to say thanks for the suggestion though - it was a good discussion and ideas are always welcome! |
I suggest
instead
is not clear.
note
otherwise I'd state
The text was updated successfully, but these errors were encountered: