1
0
Fork 0

Update schema to use anyOf instead of oneOf, fixes #9295

pull/9321/head
Jordi Boggiano 2020-10-16 11:27:50 +02:00
parent 1d553a6795
commit 7fda8433b1
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 3 additions and 3 deletions

View File

@ -364,13 +364,13 @@
"type": ["object", "array"], "type": ["object", "array"],
"description": "A set of additional repositories where packages can be found.", "description": "A set of additional repositories where packages can be found.",
"additionalProperties": { "additionalProperties": {
"oneOf": [ "anyOf": [
{ "$ref": "#/definitions/repository" }, { "$ref": "#/definitions/repository" },
{ "type": "boolean", "enum": [false] } { "type": "boolean", "enum": [false] }
] ]
}, },
"items": { "items": {
"oneOf": [ "anyOf": [
{ "$ref": "#/definitions/repository" }, { "$ref": "#/definitions/repository" },
{ {
"type": "object", "type": "object",
@ -635,7 +635,7 @@
}, },
"repository": { "repository": {
"type": "object", "type": "object",
"oneOf": [ "anyOf": [
{ "$ref": "#/definitions/composer-repository" }, { "$ref": "#/definitions/composer-repository" },
{ "$ref": "#/definitions/vcs-repository" }, { "$ref": "#/definitions/vcs-repository" },
{ "$ref": "#/definitions/path-repository" }, { "$ref": "#/definitions/path-repository" },