{
    "$id": "http://schemas.nationella-riktlinjer.se/nrb-tag-definition.1.schema.json",
    "title": "NRB Tag definition",
    "description": "Definition of a tag as specified in http://nationella-riktlinjer.se",
    "type": "object",
    "properties": {
        "_schema": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/_schema" },
        "id": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/id" },
        "slug": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-identification.1.schema.json#/definitions/slug" },
        "language": { "$ref": "http://schemas.nationella-riktlinjer.se/nrb-language.1.schema.json" },
        "short_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10
        },
        "full_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
        },
        "description": {
            "minLength": 1,
            "type": "string"
        },
        "review_steps": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1
                    },
                    "description": {
                        "type": "string",
                        "minLength": 1
                    }
                },
                "required": ["name"]
            },
            "description": ""
        }
    },
    "required": [
        "_schema",
        "id",
        "slug",
        "language",
        "short_name",
        "full_name",
        "description"
    ]
}