{
    "$id": "https://xshl.org/schemas/1.1/content/chunk/organization.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",

    "title": "Organization",

    "name": "organization-chunk-content",

    "version": "1.2.6",

    "description": "Aorganization (alive, adress, name).",

    "type": "object",

    "additionalProperties": false,

    "required": ["name", "target"],

    "properties": {
        "@context": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/context.json"
        },

        "@type": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/type.json"
        },

        "@id": { "$ref": "https://xshl.org/schemas/1.1/definitions/id.json" },

        "target": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
        },

        "name": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/text.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/text.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "image": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/file.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/file.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "about": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/text.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/text.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "address": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/place.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/place.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "founder": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/content/chunk/person.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "contacts": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "tags": {
            "oneOf": [
                {
                    "$ref": "https://xshl.org/schemas/1.1/content/chunk/tag.json"
                },

                {
                    "type": "array",

                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/content/chunk/tag.json"
                    },

                    "minItems": 2,

                    "uniqueItems": true
                }
            ]
        },

        "created": { "type": "string", "format": "date-time" },

        "modified": { "type": "string", "format": "date-time" }
    }
}
