|
1 |
| -OpenAPI 3.0.X JSON Schema |
2 |
| ---- |
| 1 | +# OpenAPI 3.0.X JSON Schema |
3 | 2 |
|
4 |
| -Here you can find the JSON Schema for validating OpenAPI definitions of versions 3.0.X. |
| 3 | +Here you can find the JSON Schema for validating OpenAPI definitions of versions 3.0.x. |
5 | 4 |
|
6 |
| -As a reminder, the JSON Schema is not the source of truth for the Specification. In cases of conflicts between the Specification itself and the JSON Schema, the Specification wins. Also, some Specification constraints cannot be represented with the JSON Schema so it's highly recommended to employ other methods to ensure compliance. |
| 5 | +As a reminder, the JSON Schema is not the source of truth for the Specification. |
| 6 | +In cases of conflicts between the Specification itself and the JSON Schema, the |
| 7 | +Specification wins. Also, some Specification constraints cannot be represented |
| 8 | +with the JSON Schema so it's highly recommended to employ other methods to |
| 9 | +ensure compliance. |
7 | 10 |
|
8 |
| -The iteration version of the JSON Schema can be found in the `id` field. For example, the value of `id: https://spec.openapis.org/oas/3.0/schema/2019-04-02` means this iteration was created on April 2nd, 2019. |
| 11 | +The iteration version of the JSON Schema can be found in the `id` field. |
| 12 | +For example, the value of `id: https://spec.openapis.org/oas/3.0/schema/2019-04-02` means this iteration was created on April 2nd, 2019. |
9 | 13 |
|
10 |
| -To submit improvements to the schema, modify the schema.yaml file only. |
| 14 | +## Contributing |
| 15 | + |
| 16 | +To submit improvements to the schema, modify the `schema.yaml` and add test cases for your changes. |
11 | 17 |
|
12 | 18 | The TSC will then:
|
13 | 19 | - Run tests on the updated schema
|
14 | 20 | - Update the iteration version
|
15 |
| -- Convert the schema.yaml to schema.json |
16 | 21 | - Publish the new version
|
| 22 | + |
| 23 | +## Tests |
| 24 | + |
| 25 | +The [test suite](../../tests/v3.0) is part of this package. |
| 26 | + |
| 27 | +```bash |
| 28 | +npm install |
| 29 | +npm test |
| 30 | +``` |
0 commit comments