Skip to content

Commit cfe6c40

Browse files
committed
Update OpenAPI 3.1 schemas
1 parent 9d9153e commit cfe6c40

File tree

6 files changed

+103
-134
lines changed

6 files changed

+103
-134
lines changed

openapi-3-1/dialect/base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export default {
2-
"$id": "https://spec.openapis.org/oas/3.1/dialect/base",
32
"$schema": "https://json-schema.org/draft/2020-12/schema",
43
"$vocabulary": {
54
"https://json-schema.org/draft/2020-12/vocab/core": true,
@@ -14,6 +13,8 @@ export default {
1413
"$dynamicAnchor": "meta",
1514

1615
"title": "OpenAPI 3.1 Schema Object Dialect",
16+
"description": "A JSON Schema dialect describing schemas found in OpenAPI v3.1 Descriptions",
17+
1718
"allOf": [
1819
{ "$ref": "https://json-schema.org/draft/2020-12/schema" },
1920
{ "$ref": "https://spec.openapis.org/oas/3.1/meta/base" }

openapi-3-1/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { JsonSchemaType } from "../lib/common.js";
33

44

55
export type OasSchema31 = boolean | {
6-
$schema?: "https://json-schema.org/draft/2020-12/schema";
6+
$schema?: "https://spec.openapis.org/oas/3.1/dialect/base";
77
$id?: string;
88
$anchor?: string;
99
$ref?: string;

openapi-3-1/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ defineVocabulary("https://spec.openapis.org/oas/3.1/vocab/base", {
3232
"xml": "https://spec.openapis.org/oas/3.0/keyword/xml"
3333
});
3434

35-
registerSchema(vocabularySchema);
36-
registerSchema(dialectSchema);
35+
registerSchema(vocabularySchema, "https://spec.openapis.org/oas/3.1/meta/base");
36+
registerSchema(dialectSchema, "https://spec.openapis.org/oas/3.1/dialect/base");
3737

3838
// Current Schemas
3939
registerSchema(schema, "https://spec.openapis.org/oas/3.1/schema");

openapi-3-1/meta/base.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
export default {
2-
"$id": "https://spec.openapis.org/oas/3.1/meta/base",
32
"$schema": "https://json-schema.org/draft/2020-12/schema",
43
"$dynamicAnchor": "meta",
5-
"title": "OAS Base vocabulary",
4+
5+
"title": "OAS Base Vocabulary",
6+
"description": "A JSON Schema Vocabulary used in the OpenAPI Schema Dialect",
67

78
"type": ["object", "boolean"],
89
"properties": {

openapi-3-1/schema-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
"https://spec.openapis.org/oas/3.1/vocab/base": false
1313
},
1414

15-
"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",
15+
"description": "The description of OpenAPI v3.1.x Documents using the OpenAPI JSON Schema dialect",
1616

1717
"$ref": "https://spec.openapis.org/oas/3.1/schema",
1818
"properties": {

0 commit comments

Comments
 (0)