json: ws nits
This commit is contained in:
parent
f00b0b936a
commit
62d0b3d194
1 changed files with 27 additions and 27 deletions
|
@ -90,7 +90,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
|
|
||||||
test({
|
test({
|
||||||
FAILURE,
|
FAILURE,
|
||||||
"invalid type type",
|
"invalid type",
|
||||||
R"""({
|
R"""({
|
||||||
"type": 123
|
"type": 123
|
||||||
})""",
|
})""",
|
||||||
|
@ -479,7 +479,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
string ::= "\"" (
|
string ::= "\"" (
|
||||||
[^"\\] |
|
[^"\\] |
|
||||||
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F])
|
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F])
|
||||||
)* "\"" space
|
)* "\"" space
|
||||||
)"""
|
)"""
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -647,16 +647,16 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
"$ref": "#/definitions/MyType",
|
"$ref": "#/definitions/MyType",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"MyType": {
|
"MyType": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"a": {
|
"a": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"a"
|
"a"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})""",
|
})""",
|
||||||
|
@ -682,10 +682,10 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"properties": {"a": {"type": "number"}}
|
"properties": {"a": {"type": "number"}}
|
||||||
},
|
},
|
||||||
"bar": {
|
"bar": {
|
||||||
"properties": {"b": {"type": "number"}}
|
"properties": {"b": {"type": "number"}}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
@ -719,16 +719,16 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"properties": {"a": {"type": "number"}}
|
"properties": {"a": {"type": "number"}}
|
||||||
},
|
},
|
||||||
"bar": {
|
"bar": {
|
||||||
"properties": {"b": {"type": "number"}}
|
"properties": {"b": {"type": "number"}}
|
||||||
},
|
},
|
||||||
"bam": {
|
"bam": {
|
||||||
"properties": {"c": {"type": "number"}}
|
"properties": {"c": {"type": "number"}}
|
||||||
},
|
},
|
||||||
"baz": {
|
"baz": {
|
||||||
"properties": {"d": {"type": "number"}}
|
"properties": {"d": {"type": "number"}}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
@ -756,15 +756,15 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
|
||||||
"properties": {
|
"properties": {
|
||||||
"number": {
|
"number": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"root": {
|
"root": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"root"
|
"root"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue