Ignore:
Timestamp:
03/19/14 21:33:13 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Allow empty subcodes.
  • Use HTTPResult exclusively on server (no more q).
  • Set readonly & disabled on ourselves as well in _ComplexValueMixin
  • Split server into several modules.
  • Check codes on the variable level, not question level.
  • We can add modules in design documents now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/config/couchdb-schema.json

    r523 r525  
    1111    "nonEmptyString": { "type": "string", "minLength": 1 },
    1212    "codeString": { "type": "string", "pattern": "^[A-Za-z0-9]+$" },
     13    "subcodeString": { "type": "string", "pattern": "^[A-Za-z0-9]*$" },
    1314    "schemaInfo": {
    1415      "type": "object",
     
    148149        "properties": {
    149150          "type": { "type": "string", "pattern": "^StringInput$" },
    150           "subcode": { "$ref": "#/definitions/codeString" },
     151          "subcode": { "$ref": "#/definitions/subcodeString" },
    151152          "text": { "$ref": "#/definitions/nonEmptyString" }
    152153        },
     
    159160          "type": { "type": "string", "pattern": "^TextInput$" },
    160161          "maxLength": { "type": "integer" },
    161           "subcode": { "$ref": "#/definitions/codeString" },
     162          "subcode": { "$ref": "#/definitions/subcodeString" },
    162163          "text": { "$ref": "#/definitions/nonEmptyString" }
    163164        },
     
    172173          "max": { "type": "integer" },
    173174          "places": { "type": "integer" },
    174           "subcode": { "$ref": "#/definitions/codeString" },
     175          "subcode": { "$ref": "#/definitions/subcodeString" },
    175176          "text": { "$ref": "#/definitions/nonEmptyString" }
    176177        },
     
    192193              "minLabel": { "$ref": "#/definitions/nonEmptyString" },
    193194              "maxLabel": { "$ref": "#/definitions/nonEmptyString" },
    194               "subcode": { "$ref": "#/definitions/codeString" },
     195              "subcode": { "$ref": "#/definitions/subcodeString" },
    195196              "text": { "$ref": "#/definitions/nonEmptyString" }
    196197            },
     
    218219              "type": "object",
    219220              "properties": {
    220                   "subcode": { "$ref": "#/definitions/codeString" }
     221                  "subcode": { "$ref": "#/definitions/subcodeString" }
    221222              },
    222223              "required": ["subcode"],
    223224              "additionalProperties": false
    224225          },
    225           "subcode": { "$ref": "#/definitions/codeString" }
     226          "subcode": { "$ref": "#/definitions/subcodeString" }
    226227        },
    227228        "required":["type","items","subcode"],
     
    235236              "type": "object",
    236237              "properties": {
    237                 "subcode": { "$ref": "#/definitions/codeString" },
     238                "subcode": { "$ref": "#/definitions/subcodeString" },
    238239                "text": { "$ref": "#/definitions/nonEmptyString" }
    239240              },
     
    244245              "type": "object",
    245246              "properties": {
    246                 "subcode": { "$ref": "#/definitions/codeString" }
     247                "subcode": { "$ref": "#/definitions/subcodeString" }
    247248              },
    248249              "required": ["subcode"],
Note: See TracChangeset for help on using the changeset viewer.