From 8bd10c250c73a76852f9e51bcc7a8fc1d1c5b429 Mon Sep 17 00:00:00 2001 From: "sammc@chromium.org" Date: Thu, 31 Oct 2013 03:59:12 +0000 Subject: Docserver: Display enum value descriptions in API docs. This modifies the json schema to allow both primitive types and dictionaries with properties "name" and optional "description" for enum values. BUG=310454 Review URL: https://codereview.chromium.org/39113003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231982 0039d316-1c4b-4281-b951-d872f2087c98 --- components/test/data/json_schema/enum_schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/test') diff --git a/components/test/data/json_schema/enum_schema.json b/components/test/data/json_schema/enum_schema.json index ae0c12a..efb68de 100644 --- a/components/test/data/json_schema/enum_schema.json +++ b/components/test/data/json_schema/enum_schema.json @@ -1,3 +1,3 @@ { - "enum": ["foo", 42, false] + "enum": ["foo", 42, {"name": false, "description": "a false value"}] } -- cgit v1.1