{
    "definitions": {
        "codeText": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
        },
        "emailAddress": {
            "format": "email",
            "maxLength": 254,
            "type": "string"
        },
        "groupCode": {
            "enum": [
                "accessibility",
                "air-quality-health-index",
                "buildings",
                "charitable-fund-raising-activities",
                "food-and-environmental-hygiene",
                "geospatial-data",
                "image-resources",
                "law-and-order",
                "marine",
                "news-and-information",
                "population-census-statistics",
                "property-market-statistics",
                "public-transport",
                "real-time-traffic-data",
                "water-quality",
                "weather-data"
            ],
            "type": "string"
        },
        "licenceCode": {
            "enum": [
                "Data.One"
            ],
            "type": "string"
        },
        "longText": {
            "maxLength": 30000,
            "minLength": 1,
            "type": "string"
        },
        "longTextMultilingual": {
            "additionalProperties": false,
            "properties": {
                "en": {
                    "$ref": "#/definitions/longText"
                },
                "zh-Hans": {
                    "$ref": "#/definitions/longText"
                },
                "zh-Hant": {
                    "$ref": "#/definitions/longText"
                }
            },
            "required": [
                "en",
                "zh-Hant",
                "zh-Hans"
            ],
            "type": "object"
        },
        "phoneNumber": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
        },
        "shortText": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
        },
        "shortTextMultilingual": {
            "additionalProperties": false,
            "properties": {
                "en": {
                    "$ref": "#/definitions/shortText"
                },
                "zh-Hans": {
                    "$ref": "#/definitions/shortText"
                },
                "zh-Hant": {
                    "$ref": "#/definitions/shortText"
                }
            },
            "required": [
                "en",
                "zh-Hant",
                "zh-Hans"
            ],
            "type": "object"
        },
        "webLink": {
            "format": "uri",
            "maxLength": 2000,
            "type": "string"
        },
        "webLinkMultilingual": {
            "additionalProperties": false,
            "properties": {
                "en": {
                    "$ref": "#/definitions/webLink"
                },
                "zh-Hans": {
                    "$ref": "#/definitions/webLink"
                },
                "zh-Hant": {
                    "$ref": "#/definitions/webLink"
                }
            },
            "required": [
                "en",
                "zh-Hant",
                "zh-Hans"
            ],
            "type": "object"
        }
    },
    "items": {
        "additionalProperties": false,
        "properties": {
            "announcement": {
                "$ref": "#/definitions/longTextMultilingual"
            },
            "contactPoint": {
                "$ref": "#/definitions/shortTextMultilingual"
            },
            "dataDictionary": {
                "$ref": "#/definitions/webLinkMultilingual"
            },
            "description": {
                "$ref": "#/definitions/longTextMultilingual"
            },
            "group": {
                "$ref": "#/definitions/groupCode"
            },
            "identifier": {
                "maxLength": 70,
                "minLength": 2,
                "type": "string"
            },
            "licence": {
                "$ref": "#/definitions/licenceCode"
            },
            "mbox": {
                "$ref": "#/definitions/emailAddress"
            },
            "phone": {
                "$ref": "#/definitions/phoneNumber"
            },
            "references": {
                "items": {
                    "$ref": "#/definitions/webLinkMultilingual"
                },
                "type": "array"
            },
            "resources": {
                "items": {
                    "additionalProperties": false,
                    "properties": {
                        "accessURL": {
                            "$ref": "#/definitions/webLink"
                        },
                        "format": {
                            "$ref": "#/definitions/codeText"
                        },
                        "isAPI": {
                            "enum": [
                                "Y",
                                "N"
                            ],
                            "type": "string"
                        },
                        "resourceDescription": {
                            "$ref": "#/definitions/longTextMultilingual"
                        },
                        "resourceTitle": {
                            "$ref": "#/definitions/shortTextMultilingual"
                        },
                        "schema": {
                            "$ref": "#/definitions/webLink"
                        },
                        "spatial": {
                            "type": "string"
                        },
                        "temporal": {
                            "additionalProperties": false,
                            "properties": {
                                "from": {
                                    "type": "string"
                                },
                                "to": {
                                    "type": "string"
                                }
                            },
                            "required": [
                                "from",
                                "to"
                            ],
                            "type": "object"
                        }
                    },
                    "required": [
                        "accessURL",
                        "format",
                        "isAPI",
                        "resourceDescription",
                        "resourceTitle"
                    ],
                    "type": "object"
                },
                "type": "array"
            },
            "sources": {
                "items": {
                    "$ref": "#/definitions/webLinkMultilingual"
                },
                "type": "array"
            },
            "title": {
                "$ref": "#/definitions/shortTextMultilingual"
            },
            "updateFrequency": {
                "$ref": "#/definitions/shortTextMultilingual"
            }
        },
        "required": [
            "description",
            "group",
            "identifier",
            "mbox",
            "resources",
            "title",
            "updateFrequency"
        ],
        "type": "object"
    },
    "type": "array"
}