From 8823887bb4378c963d647ca2b7e3f73c878272c2 Mon Sep 17 00:00:00 2001 From: Rick Bowen Date: Thu, 17 Nov 2022 16:13:48 -0800 Subject: [PATCH] JetBrains JSON Schema Validator Error Workaround `schema.json` Workaround for these two JetBrains issues: - [IDEA-236928 json schema: False positive "Schema validation: Validates to more than one variant" with "oneOf"](https://youtrack.jetbrains.com/issue/IDEA-236928) - [IDEA-265710 JSON schema validation fails if anyOf is nested in oneOf](https://youtrack.jetbrains.com/issue/IDEA-265710) There is no material effect on the actual schema validation, as the `oneOf`/`allOf` evaluates only one list entry. `allOf([1])` is `1`, and `oneOf([1])` is also `1`. Fixes #847 --- docs/static/schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/static/schema.json b/docs/static/schema.json index fa9afba3..f0e52b89 100644 --- a/docs/static/schema.json +++ b/docs/static/schema.json @@ -260,7 +260,7 @@ } } }, - "oneOf": [ + "allOf": [ { "type": "object", "properties": {