Changeset 531 for Dev/trunk/src/server/config/couchdb-schema.json
- Timestamp:
- 03/27/14 14:44:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/config/couchdb-schema.json
r525 r531 10 10 "definitions": { 11 11 "nonEmptyString": { "type": "string", "minLength": 1 }, 12 "codeString": { "type": "string", "pattern": "^[A-Za-z0-9]+$" }, 13 "subcodeString": { "type": "string", "pattern": "^[A-Za-z0-9]*$" }, 12 "code": { "type": "string", "pattern": "^[A-Za-z0-9]+$" }, 13 "subcode": { "type": "string", "pattern": "^[A-Za-z0-9]*$" }, 14 "datetime": {"type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"}, 15 "html5Email": {"type": "string", "pattern": "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"}, 14 16 "schemaInfo": { 15 17 "type": "object", … … 40 42 "_rev": { "$ref": "#/definitions/nonEmptyString" }, 41 43 "categories": { "type": "array", "items": { "$ref": "#/definitions/nonEmptyString" } }, 42 "code": { "$ref": "#/definitions/code String" },44 "code": { "$ref": "#/definitions/code" }, 43 45 "content": { "type": "array", "items": { "$ref": "#/definitions/content/any" } }, 44 46 "description": { "$ref": "#/definitions/nonEmptyString" }, 45 "publicationDate": { " type": "string", "format": "datetime" },47 "publicationDate": { "$ref": "#/definitions/datetime" }, 46 48 "title": { "$ref": "#/definitions/nonEmptyString" }, 47 49 "topic": { "$ref": "#/definitions/nonEmptyString" } … … 57 59 "_rev": { "$ref": "#/definitions/nonEmptyString" }, 58 60 "description": { "$ref": "#/definitions/nonEmptyString" }, 59 "publicationDate": { " type": "string", "format": "datetime" },61 "publicationDate": { "$ref": "#/definitions/datetime" }, 60 62 "questions": { "type": "array", "items": { "$ref": "#/definitions/docs/Question" } }, 61 63 "title": { "$ref": "#/definitions/nonEmptyString" } … … 71 73 "_rev": { "$ref": "#/definitions/nonEmptyString" }, 72 74 "description": { "$ref": "#/definitions/nonEmptyString" }, 73 "endDate": { "type": "string", "format": "datetime" }, 74 "liveName": { "$ref": "#/definitions/nonEmptyString" }, 75 "endDate": { "$ref": "#/definitions/datetime" }, 75 76 "mode": { "type": "string", "enum": [ "open", "closed" ] }, 76 77 "respondentCanDeleteOwnResponse": { "type": "boolean" }, 77 78 "secret": { "$ref": "#/definitions/nonEmptyString" }, 78 "startDate": { " type": "string", "format": "datetime" },79 "startDate": { "$ref": "#/definitions/datetime" }, 79 80 "survey": { "$ref": "#/definitions/docs/Survey" }, 80 81 "title": { "$ref": "#/definitions/nonEmptyString" } … … 96 97 "additionalProperties": false 97 98 }, 98 "email": { "type": "string", "format": "email" }, 99 "publicationDate": { "type": "string", "format": "datetime" }, 99 "publicationDate": { "$ref": "#/definitions/datetime" }, 100 100 "secret": { "$ref": "#/definitions/nonEmptyString" }, 101 101 "surveyRunId": { "$ref": "#/definitions/nonEmptyString" } … … 149 149 "properties": { 150 150 "type": { "type": "string", "pattern": "^StringInput$" }, 151 "subcode": { "$ref": "#/definitions/subcode String" },151 "subcode": { "$ref": "#/definitions/subcode" }, 152 152 "text": { "$ref": "#/definitions/nonEmptyString" } 153 153 }, … … 160 160 "type": { "type": "string", "pattern": "^TextInput$" }, 161 161 "maxLength": { "type": "integer" }, 162 "subcode": { "$ref": "#/definitions/subcode String" },162 "subcode": { "$ref": "#/definitions/subcode" }, 163 163 "text": { "$ref": "#/definitions/nonEmptyString" } 164 164 }, … … 173 173 "max": { "type": "integer" }, 174 174 "places": { "type": "integer" }, 175 "subcode": { "$ref": "#/definitions/subcode String" },175 "subcode": { "$ref": "#/definitions/subcode" }, 176 176 "text": { "$ref": "#/definitions/nonEmptyString" } 177 177 }, … … 193 193 "minLabel": { "$ref": "#/definitions/nonEmptyString" }, 194 194 "maxLabel": { "$ref": "#/definitions/nonEmptyString" }, 195 "subcode": { "$ref": "#/definitions/subcode String" },195 "subcode": { "$ref": "#/definitions/subcode" }, 196 196 "text": { "$ref": "#/definitions/nonEmptyString" } 197 197 }, … … 219 219 "type": "object", 220 220 "properties": { 221 "subcode": { "$ref": "#/definitions/subcode String" }221 "subcode": { "$ref": "#/definitions/subcode" } 222 222 }, 223 223 "required": ["subcode"], 224 224 "additionalProperties": false 225 225 }, 226 "subcode": { "$ref": "#/definitions/subcode String" }226 "subcode": { "$ref": "#/definitions/subcode" } 227 227 }, 228 228 "required":["type","items","subcode"], … … 236 236 "type": "object", 237 237 "properties": { 238 "subcode": { "$ref": "#/definitions/subcode String" },238 "subcode": { "$ref": "#/definitions/subcode" }, 239 239 "text": { "$ref": "#/definitions/nonEmptyString" } 240 240 }, … … 245 245 "type": "object", 246 246 "properties": { 247 "subcode": { "$ref": "#/definitions/subcode String" }247 "subcode": { "$ref": "#/definitions/subcode" } 248 248 }, 249 249 "required": ["subcode"],
Note: See TracChangeset
for help on using the changeset viewer.