Publish v3.1 schemas version 2022-10-07
MODIFY
schemas/v3.1/schema-base.json
schemas/v3.1/schema-base.json
{
- "$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-02-27",
+ "$id": "https://spec.openapis.org/oas/3.1/schema-base/2022-10-07",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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",
- "$ref": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
+ "$ref": "https://spec.openapis.org/oas/3.1/schema/2022-10-07",
"properties": {
"jsonSchemaDialect": { "$ref": "#/$defs/dialect" }
},

MODIFY
schemas/v3.1/schema-base.yaml
schemas/v3.1/schema-base.yaml
-$id: 'https://spec.openapis.org/oas/3.1/schema-base/2022-02-27'
+$id: 'https://spec.openapis.org/oas/3.1/schema-base/2022-10-07'
$schema: 'https://json-schema.org/draft/2020-12/schema'
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
-$ref: 'https://spec.openapis.org/oas/3.1/schema/2022-02-27'
+$ref: 'https://spec.openapis.org/oas/3.1/schema/2022-10-07'
properties:
jsonSchemaDialect:
$ref: '#/$defs/dialect'

MODIFY
schemas/v3.1/schema.json
schemas/v3.1/schema.json
{
- "$id": "https://spec.openapis.org/oas/3.1/schema/2022-02-27",
+ "$id": "https://spec.openapis.org/oas/3.1/schema/2022-10-07",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",
"type": "object",
"$ref": "#/$defs/server"
},
"default": [
- { "url": "/" }
+ {
+ "url": "/"
+ }
]
},
"paths": {
"required": [
"name"
],
- "oneOf": [
- {
- "required": [
- "identifier"
- ]
- },
- {
+ "dependentSchemas": {
+ "identifier": {
+ "not": {
"required": [
"url"
]
}
- ],
+ }
+ },
"$ref": "#/$defs/specification-extensions",
"unevaluatedProperties": false
},

MODIFY
schemas/v3.1/schema.yaml
schemas/v3.1/schema.yaml
-$id: 'https://spec.openapis.org/oas/3.1/schema/2022-02-27'
+$id: 'https://spec.openapis.org/oas/3.1/schema/2022-10-07'
$schema: 'https://json-schema.org/draft/2020-12/schema'
description: The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0

MODIFY
tests/v3.1/test.js
tests/v3.1/test.js
@@ -14,7 +14,7 @@ before(async () => {
JsonSchema.add(dialect);
JsonSchema.add(vocabulary);
JsonSchema.add(yaml.parse(fs.readFileSync(`${__dirname}/../../schemas/v3.1/schema.yaml`, "utf8"), { prettyErrors: true }));
- metaSchema = await JsonSchema.get("https://spec.openapis.org/oas/3.1/schema/2022-02-27");
+ metaSchema = await JsonSchema.get("https://spec.openapis.org/oas/3.1/schema/2022-10-07");
});
describe("v3.1 Pass", () => {

Publish v3.1 schemas version 2022-10-07 (#3042)