diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-11-25 15:37:44 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-11-25 15:37:59 +0200 |
commit | a03cf9336873f63a98d0049996465c26b40405b8 (patch) | |
tree | 02b82bc5f2ce5b68ffe66ac012e31c4b94fcc16d /protocol.txt | |
parent | 91fd2ad0f9fb9a0cb4482a6405c4475036c999b3 (diff) | |
download | aconf-a03cf9336873f63a98d0049996465c26b40405b8.tar.bz2 aconf-a03cf9336873f63a98d0049996465c26b40405b8.tar.xz |
convert field choices to objects to allow additional parameters
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 6 |
1 files changed, 4 insertions, 2 deletions
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 |