summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/oneOf.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-08-31 17:37:32 +0300
committerJulian Berman <Julian@GrayVines.com>2022-08-31 17:37:32 +0300
commit2f15a98f9243b77ff8f546e8b28cbbdabd7fef23 (patch)
tree3e6370ffbd0dcb95f2bb93037702c1976497303c /json/tests/draft2019-09/oneOf.json
parent575e786be8bad3f7bc628e2abe09defc3d7fb0bd (diff)
parent65802a7ebcd0b661c829307354ab0c24e1e05031 (diff)
downloadjsonschema-2f15a98f9243b77ff8f546e8b28cbbdabd7fef23.tar.gz
Merge commit '65802a7ebcd0b661c829307354ab0c24e1e05031'
* commit '65802a7ebcd0b661c829307354ab0c24e1e05031': Squashed 'json/' changes from 4cfead7ba..6eaf7dff4
Diffstat (limited to 'json/tests/draft2019-09/oneOf.json')
-rw-r--r--json/tests/draft2019-09/oneOf.json27
1 files changed, 23 insertions, 4 deletions
diff --git a/json/tests/draft2019-09/oneOf.json b/json/tests/draft2019-09/oneOf.json
index eeb7ae8..9b7a220 100644
--- a/json/tests/draft2019-09/oneOf.json
+++ b/json/tests/draft2019-09/oneOf.json
@@ -2,6 +2,7 @@
{
"description": "oneOf",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"oneOf": [
{
"type": "integer"
@@ -37,6 +38,7 @@
{
"description": "oneOf with base schema",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "string",
"oneOf" : [
{
@@ -67,7 +69,10 @@
},
{
"description": "oneOf with boolean schemas, all true",
- "schema": {"oneOf": [true, true, true]},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "oneOf": [true, true, true]
+ },
"tests": [
{
"description": "any value is invalid",
@@ -78,7 +83,10 @@
},
{
"description": "oneOf with boolean schemas, one true",
- "schema": {"oneOf": [true, false, false]},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "oneOf": [true, false, false]
+ },
"tests": [
{
"description": "any value is valid",
@@ -89,7 +97,10 @@
},
{
"description": "oneOf with boolean schemas, more than one true",
- "schema": {"oneOf": [true, true, false]},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "oneOf": [true, true, false]
+ },
"tests": [
{
"description": "any value is invalid",
@@ -100,7 +111,10 @@
},
{
"description": "oneOf with boolean schemas, all false",
- "schema": {"oneOf": [false, false, false]},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
+ "oneOf": [false, false, false]
+ },
"tests": [
{
"description": "any value is invalid",
@@ -112,6 +126,7 @@
{
"description": "oneOf complex types",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"oneOf": [
{
"properties": {
@@ -153,6 +168,7 @@
{
"description": "oneOf with empty schema",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"oneOf": [
{ "type": "number" },
{}
@@ -174,6 +190,7 @@
{
"description": "oneOf with required",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"oneOf": [
{ "required": ["foo", "bar"] },
@@ -206,6 +223,7 @@
{
"description": "oneOf with missing optional property",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"oneOf": [
{
"properties": {
@@ -248,6 +266,7 @@
{
"description": "nested oneOf, to check validation semantics",
"schema": {
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
"oneOf": [
{
"oneOf": [