From a85b4866593210fd4239243c612425bdc6da4edd Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Fri, 7 Aug 2020 14:30:58 +0200 Subject: [PATCH] fix: Schema should not enforce minProperties (#14) --- .gitignore | 1 + schemas/2.0.0.json | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a75301c6..d4e62d0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .nyc_output .vscode +coverage diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index fe360bef..61b1d2b4 100644 --- a/schemas/2.0.0.json +++ b/schemas/2.0.0.json @@ -209,7 +209,6 @@ "serverVariable": { "type": "object", "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, "additionalProperties": false, "patternProperties": { "^x-[\\w\\d\\.\\-\\_]+$": { @@ -479,7 +478,6 @@ "$ref": "#/definitions/specificationExtension" } }, - "minProperties": 1, "properties": { "$ref": { "$ref": "#/definitions/ReferenceObject" @@ -1282,8 +1280,7 @@ ] } }, - "additionalProperties": false, - "minProperties": 1 + "additionalProperties": false } }, "patternProperties": {