Changeset 508 for Dev/trunk/src/server/config/couchdb-schema.json
- Timestamp:
- 03/12/14 02:23:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/config/couchdb-schema.json
r506 r508 2 2 "$schema": "http://json-schema.org/draft-04/schema#", 3 3 "title": "QED Object Schema", 4 "version": " 3",4 "version": "4", 5 5 "type": "object", 6 6 "oneOf": [ … … 10 10 "definitions": { 11 11 "nonEmptyString": { "type": "string", "minLength": 1 }, 12 "codeString": { "type": "string", "pattern": "^[A-Za-z0-9]+$" }, 12 13 "schemaInfo": { 13 14 "type": "object", … … 37 38 "_rev": { "$ref": "#/definitions/nonEmptyString" }, 38 39 "categories": { "type": "array", "items": { "$ref": "#/definitions/nonEmptyString" } }, 39 "code": { "$ref": "#/definitions/ nonEmptyString" },40 "code": { "$ref": "#/definitions/codeString" }, 40 41 "content": { "type": "array", "items": { "$ref": "#/definitions/content/any" } }, 41 42 "description": { "$ref": "#/definitions/nonEmptyString" }, … … 86 87 "_id": { "$ref": "#/definitions/nonEmptyString" }, 87 88 "_rev": { "$ref": "#/definitions/nonEmptyString" }, 88 "answers": { "type": "object" }, 89 "answers": { 90 "type": "object", 91 "patternProperties": { 92 "^[A-Za-z0-9]+$": {} 93 }, 94 "additionalProperties": false 95 }, 89 96 "email": { "type": "string", "format": "email" }, 90 97 "publicationDate": { "type": "string", "format": "datetime" }, … … 139 146 "properties": { 140 147 "type": { "type": "string", "pattern": "^StringInput$" }, 141 "subcode": { "$ref": "#/definitions/ nonEmptyString" },148 "subcode": { "$ref": "#/definitions/codeString" }, 142 149 "text": { "$ref": "#/definitions/nonEmptyString" } 143 150 }, … … 150 157 "type": { "type": "string", "pattern": "^TextInput$" }, 151 158 "maxLength": { "type": "integer" }, 152 "subcode": { "$ref": "#/definitions/ nonEmptyString" },159 "subcode": { "$ref": "#/definitions/codeString" }, 153 160 "text": { "$ref": "#/definitions/nonEmptyString" } 154 161 }, … … 163 170 "max": { "type": "integer" }, 164 171 "places": { "type": "integer" }, 165 "subcode": { "$ref": "#/definitions/ nonEmptyString" },172 "subcode": { "$ref": "#/definitions/codeString" }, 166 173 "text": { "$ref": "#/definitions/nonEmptyString" } 167 174 }, … … 183 190 "minLabel": { "$ref": "#/definitions/nonEmptyString" }, 184 191 "maxLabel": { "$ref": "#/definitions/nonEmptyString" }, 185 "subcode": { "$ref": "#/definitions/ nonEmptyString" },192 "subcode": { "$ref": "#/definitions/codeString" }, 186 193 "text": { "$ref": "#/definitions/nonEmptyString" } 187 194 }, … … 201 208 "type": "object", 202 209 "properties": { 203 "subcode": { "$ref": "#/definitions/ nonEmptyString" },210 "subcode": { "$ref": "#/definitions/codeString" }, 204 211 "text": { "$ref": "#/definitions/nonEmptyString" } 205 212 }, … … 210 217 "type": "object", 211 218 "properties": { 212 "subcode": { "$ref": "#/definitions/ nonEmptyString" },219 "subcode": { "$ref": "#/definitions/codeString" }, 213 220 "text": { "$ref": "#/definitions/nonEmptyString" } 214 221 },
Note: See TracChangeset
for help on using the changeset viewer.