| Index: trunk/src/components/json_schema/json_schema_validator_unittest.cc
|
| ===================================================================
|
| --- trunk/src/components/json_schema/json_schema_validator_unittest.cc (revision 232015)
|
| +++ trunk/src/components/json_schema/json_schema_validator_unittest.cc (working copy)
|
| @@ -77,16 +77,10 @@
|
| EXPECT_FALSE(JSONSchemaValidator::IsValidSchema(
|
| "{"
|
| " \"type\": \"string\","
|
| - " \"enum\": [ {} ]" // "enum" dict values must contain "name".
|
| + " \"enum\": [ {} ]," // "enum" must contain simple values.
|
| "}", &error));
|
| EXPECT_FALSE(JSONSchemaValidator::IsValidSchema(
|
| "{"
|
| - " \"type\": \"string\","
|
| - " \"enum\": [ { \"name\": {} } ]" // "enum" name must be a simple value.
|
| - "}",
|
| - &error));
|
| - EXPECT_FALSE(JSONSchemaValidator::IsValidSchema(
|
| - "{"
|
| " \"type\": \"array\","
|
| " \"items\": [ 123 ]," // "items" must contain a schema or schemas.
|
| "}", &error));
|
| @@ -112,7 +106,7 @@
|
| " },"
|
| " \"enum-property\": {"
|
| " \"type\": \"integer\","
|
| - " \"enum\": [0, 1, {\"name\": 10}, 100]"
|
| + " \"enum\": [0, 1, 10, 100]"
|
| " },"
|
| " \"items-property\": {"
|
| " \"type\": \"array\","
|
|
|