Updated
Oct 11, 2021, 12:01:10 PM

{
    "$id": "https://objects.monarc.lu/schema/def/76315a94-50a4-4358-a844-f5eae7e7e141",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
        "authors": {
            "items": {
                "type": "string"
            },
            "type": "array",
            "uniqueItems": true
        },
        "code": {
            "type": "string"
        },
        "description": {
            "type": "string"
        },
        "label": {
            "type": "string"
        },
        "language": {
            "default": "EN",
            "oneOf": [
                {
                    "pattern": "^[A-Z]{2}$",
                    "type": "string"
                }
            ],
            "type": "string"
        },
        "type": {
            "enum": [
                "Primary",
                "Secondary"
            ],
            "type": "string"
        },
        "uuid": {
            "type": "string"
        },
        "version": {
            "type": "integer"
        }
    },
    "required": [
        "uuid",
        "code",
        "label",
        "description",
        "type",
        "version"
    ],
    "title": "Validator for assets used in MONARC",
    "type": "object"
}