{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "title": "Category Definition Schema",
    "properties": {
        "name": {
            "$ref": "#/definitions/name"
        },
        "imageUrl": {
            "$ref": "#/definitions/link"
        },
        "description": {
            "$ref": "#/definitions/description"
        },
        "presentation": {
            "id": "#presentation",
            "type": "integer",
            "title": "product ordering, 1000=featured",
            "minimum": 0
        }
    },
    "required": [
        "name",
        "description",
        "imageUrl"
    ],
    "definitions": {
        "name": {
            "id": "#/definitions/name",
            "type": "string",
            "title": "",
            "minLength": 2
        },
        "link": {
            "id": "#/definitions/link",
            "type": "string",
            "_format": "uri",
            "title": "",
            "pattern": "^(http|https)://[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:/~\\+#]*[\\w\\-\\@?^=%&amp;/~\\+#])?$"
        },
        "description": {
            "id": "#/definitions/description",
            "type": "string",
            "title": "",
            "minLength": 0
        }
    }
}