-
Notifications
You must be signed in to change notification settings - Fork 7
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
JSON schema contribution guide #2248
base: main
Are you sure you want to change the base?
Conversation
eb2615f
to
3c0d091
Compare
Compositions and conditions here refers to the use of `allOf`, `anyOf`, and `oneOf`, etc. to define schema compositions and conditions. | ||
|
||
- Schemas with compositions and conditions must set defaults because otherwise they cannot be fully resolved. | ||
- Schemas with compositions and conditions should set examples because otherwise they cannot be fully resolved. | ||
- Should not use `if` `then` `else` as it has less support in tooling, and has a semantic that is generally different from other schema constructs. |
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.
Do you think it might be good to include some examples in this section? I think conditionals can get kind of advanced, and there aren't that many examples to look at in our existing schemas.
|
||
### Metadata | ||
|
||
These guidelines aims to help to create better quality reference documentation. |
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.
These guidelines aims to help to create better quality reference documentation. | |
These guidelines aim to help in creating better quality reference documentation. |
Minor wording nit.
|
||
### Structural | ||
|
||
These guidelines aims to help to create schemas that are easier to read and write. |
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.
These guidelines aims to help to create schemas that are easier to read and write. | |
These guidelines aim to help in creating schemas that are easier to read and write. |
Warning
This is a public repository, ensure not to disclose:
What kind of PR is this?
Required: Mark one of the following that is applicable:
Optional: Mark one or more of the following that are applicable:
Important
Breaking changes should be marked
kind/admin-change
orkind/dev-change
depending on typeCritical security fixes should be marked with
kind/security
What does this PR do / why do we need this PR?
This adds guidelines on how to write schema.
Closes https://github.com/elastisys/ck8s-issue-tracker/issues/282
Information to reviewers
Checklist
NetworkPolicy Dashboard