1
0
mirror of https://github.com/go-task/task.git synced 2025-03-17 21:08:01 +02:00

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
This commit is contained in:
Rick Bowen 2022-11-17 16:13:48 -08:00
parent 593980e45a
commit 8823887bb4

View File

@ -260,7 +260,7 @@
}
}
},
"oneOf": [
"allOf": [
{
"type": "object",
"properties": {