-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: add JSON Schema 2020-12 schemas #72
Conversation
7fdae77
to
e6c7463
Compare
Hi @jeremyfiel, Thanks for contributing this! We don't have the infrastructure in place for testing and publishing schemas, so I'll convert this PR to draft until we are ready. |
e6c7463
to
f10fc4b
Compare
Because an
rethinking this, I don't think this is possible to enforce from the schema because the |
8e3e22d
to
bceb815
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In addition to this we'll also need (not necessarily in this PR)
- tests for the schema, similar to https://github.com/OAI/OpenAPI-Specification/tree/main/tests/v3.1
- A
schemas/README.MD
file similar to https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/README.md, just one folder down directly inschemas
bceb815
to
46e7011
Compare
related #86 |
You can also validate a document individually. | ||
|
||
```bash | ||
node scripts/validate.mjs path/to/document/to/validate.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot to copy this 🙄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added: thanks for reminding me!
46e7011
to
dd0f4fa
Compare
* add constraint for `update` scenario' -m 'rename version folder' * update `$id` with the official release date * add `$comment` for each section * add schema readme.md * remove .json file as it's auto-generated by the build * revise target regex pattern * update schema readme closes OAI#71
dd0f4fa
to
3539656
Compare
@jeremyfiel Can this PR be closed in favor of #94? And do you want to include the |
yes, can be closed and readme ported over. |
closes #71