Skip to content

Commit

Permalink
Update oas-3.1 schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Jun 24, 2024
1 parent 8c72291 commit a6cc02d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 73 deletions.
9 changes: 0 additions & 9 deletions data/oas-3.1/meta/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@
"externalDocs": { "$ref": "#/$defs/external-docs" },
"xml": { "$ref": "#/$defs/xml" }
},
"dependentSchemas": {
"discriminator": {
"anyOf": [
{ "required": [ "oneOf" ] },
{ "required": [ "anyOf" ] },
{ "required": [ "allOf" ] }
]
}
},

"$defs": {
"extensible": {
Expand Down
95 changes: 31 additions & 64 deletions data/oas-3.1/schema/2022-10-07.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri-reference"
"type": "string"
},
"description": {
"type": "string"
Expand Down Expand Up @@ -525,7 +524,7 @@
"$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"
},
{
"$ref": "#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"
"$ref": "#/$defs/styles-for-form"
}
],
"$defs": {
Expand All @@ -542,9 +541,6 @@
},
"then": {
"properties": {
"name": {
"pattern": "[^/#?]+$"
},
"style": {
"default": "simple",
"enum": [
Expand Down Expand Up @@ -630,32 +626,6 @@
}
}
}
},
"styles-for-form": {
"if": {
"properties": {
"style": {
"const": "form"
}
},
"required": [
"style"
]
},
"then": {
"properties": {
"explode": {
"default": true
}
}
},
"else": {
"properties": {
"explode": {
"default": false
}
}
}
}
}
}
Expand Down Expand Up @@ -782,38 +752,10 @@
"$ref": "#/$defs/specification-extensions"
},
{
"$ref": "#/$defs/encoding/$defs/explode-default"
"$ref": "#/$defs/styles-for-form"
}
],
"unevaluatedProperties": false,
"$defs": {
"explode-default": {
"if": {
"properties": {
"style": {
"const": "form"
}
},
"required": [
"style"
]
},
"then": {
"properties": {
"explode": {
"default": true
}
}
},
"else": {
"properties": {
"explode": {
"default": false
}
}
}
}
}
"unevaluatedProperties": false
},
"responses": {
"$comment": "https://spec.openapis.org/oas/v3.1.0#responses-object",
Expand Down Expand Up @@ -1100,8 +1042,7 @@
"description": {
"type": "string"
}
},
"unevaluatedProperties": false
}
},
"schema": {
"$comment": "https://spec.openapis.org/oas/v3.1.0#schema-object",
Expand Down Expand Up @@ -1436,6 +1377,32 @@
"additionalProperties": {
"type": "string"
}
},
"styles-for-form": {
"if": {
"properties": {
"style": {
"const": "form"
}
},
"required": [
"style"
]
},
"then": {
"properties": {
"explode": {
"default": true
}
}
},
"else": {
"properties": {
"explode": {
"default": false
}
}
}
}
}
}

0 comments on commit a6cc02d

Please sign in to comment.