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

Unified Diff: tools/json_schema_compiler/test/choices.json

Issue 10790040: JSON Schema Compiler now supports conversion from Choice to base::Value. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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: tools/json_schema_compiler/test/choices.json
diff --git a/tools/json_schema_compiler/test/choices.json b/tools/json_schema_compiler/test/choices.json
index e53ac13ea338efe1f0909c3e620f5f56249e7c29..24683c4c379a36bfb224b1dee9bb1d4129016a89 100644
--- a/tools/json_schema_compiler/test/choices.json
+++ b/tools/json_schema_compiler/test/choices.json
@@ -1,7 +1,27 @@
[
{
"namespace": "choices",
- "types": [],
+ "types": [
+ {
+ "id": "ChoiceType",
+ "type": "object",
+ "properties": {
+ "integers": {
+ "choices": [
+ {"type": "array", "items": {"type": "integer", "minimum": 0}},
+ {"type": "integer"}
+ ]
+ },
+ "strings": {
+ "choices": [
+ {"type": "array", "items": {"type": "string", "minimum": 0}},
+ {"type": "string"}
+ ],
+ "optional": true
+ }
+ }
+ }
+ ],
"functions": [
{
"name": "takesIntegers",

Powered by Google App Engine
This is Rietveld 408576698