{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "UMM-Sub",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "Name": {
            "description": "The name of a subscription.",
            "type": "string",
            "minLength": 1,
            "maxLength": 80
        },
        "SubscriberId": {
            "description": "The userid of the subscriber.",
            "type": "string",
            "minLength": 1,
            "maxLength": 30
        },
        "EmailAddress": {
            "description": "The email address of the subscriber.",
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "CollectionConceptId": {
            "description": "The collection concept id of the granules subscribed.",
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "Query": {
            "description": "The search query for the granules that matches the subscription.",
            "type": "string",
            "minLength": 1,
            "maxLength": 40000
        }
    },
    "required": [
        "Name",
        "SubscriberId",
        "EmailAddress",
        "CollectionConceptId",
        "Query"
    ]
}