Skip to content

Commit 157a4c8

Browse files
authored
Publish v3.1 schemas version 2022-10-07 (#3042)
1 parent ba8510a commit 157a4c8

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

schemas/v3.1/schema-base.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-02-27",
2+
"$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-10-07",
33
"$schema": "https://json-schema.org/draft/2020-12/schema",
44

55
"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",
66

7-
"$ref": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
7+
"$ref": "https://spec.openapis.org/oas/3.1/schema/2022-10-07",
88
"properties": {
99
"jsonSchemaDialect": { "$ref": "#/$defs/dialect" }
1010
},

schemas/v3.1/schema-base.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
$id: 'https://spec.openapis.org/oas/3.1/schema-base/2022-02-27'
1+
$id: 'https://spec.openapis.org/oas/3.1/schema-base/2022-10-07'
22
$schema: 'https://json-schema.org/draft/2020-12/schema'
33

44
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
55

6-
$ref: 'https://spec.openapis.org/oas/3.1/schema/2022-02-27'
6+
$ref: 'https://spec.openapis.org/oas/3.1/schema/2022-10-07'
77
properties:
88
jsonSchemaDialect:
99
$ref: '#/$defs/dialect'

schemas/v3.1/schema.json

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
2+
"$id": "https://spec.openapis.org/oas/3.1/schema/2022-10-07",
33
"$schema": "https://json-schema.org/draft/2020-12/schema",
44
"description": "The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",
55
"type": "object",
@@ -22,7 +22,9 @@
2222
"$ref": "#/$defs/server"
2323
},
2424
"default": [
25-
{ "url": "/" }
25+
{
26+
"url": "/"
27+
}
2628
]
2729
},
2830
"paths": {
@@ -148,18 +150,15 @@
148150
"required": [
149151
"name"
150152
],
151-
"oneOf": [
152-
{
153-
"required": [
154-
"identifier"
155-
]
156-
},
157-
{
158-
"required": [
159-
"url"
160-
]
153+
"dependentSchemas": {
154+
"identifier": {
155+
"not": {
156+
"required": [
157+
"url"
158+
]
159+
}
161160
}
162-
],
161+
},
163162
"$ref": "#/$defs/specification-extensions",
164163
"unevaluatedProperties": false
165164
},

schemas/v3.1/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$id: 'https://spec.openapis.org/oas/3.1/schema/2022-02-27'
1+
$id: 'https://spec.openapis.org/oas/3.1/schema/2022-10-07'
22
$schema: 'https://json-schema.org/draft/2020-12/schema'
33

44
description: The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0

tests/v3.1/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before(async () => {
1414
JsonSchema.add(dialect);
1515
JsonSchema.add(vocabulary);
1616
JsonSchema.add(yaml.parse(fs.readFileSync(`${__dirname}/../../schemas/v3.1/schema.yaml`, "utf8"), { prettyErrors: true }));
17-
metaSchema = await JsonSchema.get("https://spec.openapis.org/oas/3.1/schema/2022-02-27");
17+
metaSchema = await JsonSchema.get("https://spec.openapis.org/oas/3.1/schema/2022-10-07");
1818
});
1919

2020
describe("v3.1 Pass", () => {

0 commit comments

Comments
 (0)