Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: trunk/src/components/json_schema/json_schema_validator_unittest.cc

Issue 47403003: Revert 231982 "Docserver: Display enum value descriptions in API..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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\","
« no previous file with comments | « trunk/src/components/json_schema/json_schema_validator.cc ('k') | trunk/src/components/test/data/json_schema/enum_schema.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698