From a03cf9336873f63a98d0049996465c26b40405b8 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Mon, 25 Nov 2013 15:37:44 +0200 Subject: convert field choices to objects to allow additional parameters --- protocol.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocol.txt') diff --git a/protocol.txt b/protocol.txt index f0ad9cb..68f62d7 100644 --- a/protocol.txt +++ b/protocol.txt @@ -62,8 +62,10 @@ resp: JSON object, with the following attributes: - required (boolean) - default - max-length - - choices (optional array of allowed values, which are - tuples of actual values and user-friendly versions) + - choices: optional array of allowed values, which are + objects with the following attributes: + - value + - ui-value (user-friendly version) - fields (model only): array of field metadata JSON objects - members (collections and sets only): metadata for -- cgit v1.2.3