зеркало из https://github.com/Azure/autorest.git
Fix: OpenAPI3 Validation of additional properties support boolean (#4006)
* Fix: OpenAPI3 Validation of additional properties support boolean * Patch
This commit is contained in:
Родитель
a3c85f5aec
Коммит
c4c1cac561
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"changes": [
|
||||
{
|
||||
"packageName": "@autorest/schemas",
|
||||
"comment": "**Fix**: OpenAPI3 Validation of additional properties support boolean",
|
||||
"type": "patch"
|
||||
}
|
||||
],
|
||||
"packageName": "@autorest/schemas",
|
||||
"email": "tiguerin@microsoft.com"
|
||||
}
|
|
@ -383,16 +383,16 @@
|
|||
"additionalProperties": {
|
||||
"allOf": [
|
||||
{
|
||||
"if": { "required": ["$ref"] },
|
||||
"if": { "type": "object", "required": ["$ref"] },
|
||||
"then": { "$ref": "#/definitions/Reference" }
|
||||
},
|
||||
{
|
||||
"if": { "type": "object" },
|
||||
"then": { "$ref": "#/definitions/Schema" }
|
||||
},
|
||||
{
|
||||
"if": { "type": "boolean" },
|
||||
"then": { "type": "boolean" }
|
||||
"then": { "$ref": "#/definitions/Schema" },
|
||||
"else": {
|
||||
"type": "boolean",
|
||||
"errorMessage": "should be a Reference Object, Schema Object, or boolean value"
|
||||
}
|
||||
}
|
||||
],
|
||||
"default": true
|
||||
|
|
Загрузка…
Ссылка в новой задаче