Skip to content

Commit 80c781e

Browse files
add description to all schemas (#2802)
in v3.1 the number of schemas increased considerably, which can be a bit confusing.
1 parent ba36b28 commit 80c781e

10 files changed

+14
-6
lines changed

schemas/v3.0/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "https://spec.openapis.org/oas/3.0/schema/2021-09-28",
33
"$schema": "http://json-schema.org/draft-04/schema#",
4-
"description": "Validation schema for OpenAPI Specification 3.0.X.",
4+
"description": "The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
55
"type": "object",
66
"required": [
77
"openapi",

schemas/v3.0/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id: https://spec.openapis.org/oas/3.0/schema/2021-09-28
22
$schema: http://json-schema.org/draft-04/schema#
3-
description: Validation schema for OpenAPI Specification 3.0.X.
3+
description: The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3
44
type: object
55
required:
66
- openapi

schemas/v3.1/dialect/base.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"title": "OpenAPI 3.1 Schema Object Dialect",
3+
"description": "A JSON Schema dialect describing schemas found in OpenAPI documents",
24
"$id": "https://spec.openapis.org/oas/3.1/dialect/base",
35
"$schema": "https://json-schema.org/draft/2020-12/schema",
46
"$vocabulary": {
@@ -13,7 +15,6 @@
1315
},
1416
"$dynamicAnchor": "meta",
1517

16-
"title": "OpenAPI 3.1 Schema Object Dialect",
1718
"allOf": [
1819
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
1920
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }

schemas/v3.1/dialect/base.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
title: OpenAPI 3.1 Schema Object Dialect
3+
description: A JSON Schema dialect describing schemas found in OpenAPI documents
24
$dynamicAnchor: meta
35
$id: https://spec.openapis.org/oas/3.1/dialect/base
46
$schema: https://json-schema.org/draft/2020-12/schema
@@ -14,4 +16,3 @@ $vocabulary:
1416
allOf:
1517
- $ref: https://json-schema.org/draft/2020-12/schema
1618
- $ref: https://spec.openapis.org/oas/3.1/meta/base
17-
title: OpenAPI 3.1 Schema Object Dialect

schemas/v3.1/meta/base.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2+
"title": "OAS Base vocabulary",
3+
"description": "A JSON Schema Vocabulary used in the OpenAPI Schema Dialect",
24
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
35
"$schema": "https://json-schema.org/draft/2020-12/schema",
46
"$vocabulary": {
57
"https://spec.openapis.org/oas/3.1/vocab/base": true
68
},
79
"$dynamicAnchor": "meta",
8-
"title": "OAS Base vocabulary",
910

1011
"type": ["object", "boolean"],
1112
"properties": {

schemas/v3.1/meta/base.schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
2+
title: OAS Base vocabulary
3+
description: A JSON Schema Vocabulary used in the OpenAPI Schema Dialect
24
$defs:
35
discriminator:
46
$ref: '#/$defs/extensible'
@@ -57,7 +59,6 @@ properties:
5759
$ref: '#/$defs/external-docs'
5860
xml:
5961
$ref: '#/$defs/xml'
60-
title: OAS Base vocabulary
6162
type:
6263
- object
6364
- boolean

schemas/v3.1/schema-base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"description": "The description of OpenAPI v3.1.x documents using the OpenAPI JSON Schema dialect, as defined by https://spec.openapis.org/oas/v3.1.0",
23
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2021-09-28",
34
"$schema": "https://json-schema.org/draft/2020-12/schema",
45
"$ref": "https://spec.openapis.org/oas/3.1/schema/2021-09-28",

schemas/v3.1/schema-base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
description: The description of OpenAPI v3.1.x documents using the OpenAPI JSON Schema dialect, as defined by https://spec.openapis.org/oas/v3.1.0
12
$id: 'https://spec.openapis.org/oas/3.1/schema-base/2021-09-28'
23
$schema: 'https://json-schema.org/draft/2020-12/schema'
34

schemas/v3.1/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"description": "The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",
23
"$id": "https://spec.openapis.org/oas/3.1/schema/2021-09-28",
34
"$schema": "https://json-schema.org/draft/2020-12/schema",
45
"type": "object",

schemas/v3.1/schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
description: The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0
12
$id: 'https://spec.openapis.org/oas/3.1/schema/2021-09-28'
23
$schema: 'https://json-schema.org/draft/2020-12/schema'
34

0 commit comments

Comments
 (0)