{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Display properties for a supported language Schema",
    "description": "An object defining display properties for a supported language",
    "type": "object",
    "required": [
        "name",
        "locale"
    ],
    "properties": {
        "name": {
            "type": "string",
            "description": "String value of a display name",
            "pattern": "^(?!\\s)(?!.*\\s\\s)(?!.*\\s$).+$"
        },
        "locale": {
            "type": "string",
            "description": "String value that identifies the language of this display name represented as a language tag taken from values defined in BCP47 [RFC5646]",
            "enum": [
                "it-IT",
                "en-US"
            ]
        },
        "description": {
            "type": "string",
            "description": "String value of a description of this display name",
            "pattern": "^(?!\\s)(?!.*\\s\\s)(?!.*\\s$).+$"
        },
        "background_color": {
            "type": "string",
            "description": "RGB color value as defined in W3C.CSS-COLOR for the background of this display name"
        },
        "text_color": {
            "type": "string",
            "description": "RGB color value as defined in W3C.CSS-COLOR for the text of this display name"
        },
        "logo": {
            "type": "object",
            "description": "Object with information about the SVG logo image to diplay with this display name",
            "properties": {
                "uri": {
                    "type": "string",
                    "description": "String value that contains a URI where obtaining the logo image",
                    "pattern": "^(http|https):\\/\\/(?!(w{1,2}|w{4,})\\.)(www\\.)?[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)+(\\.[a-zA-Z]{2,})(:[0-9]+)?(\\/.*)?\\.svg$"
                },
                "alt_text": {
                    "type": "string",
                    "description": "String value of the alternative text to display instead of the SVG logo image",
                    "pattern": "^(?!\\s)(?!.*\\s\\s)(?!.*\\s$).+$"
                }
            },
            "required": [
                "uri"
            ],
            "additionalProperties": false
        }
    },
    "additionalProperties": false
}