{
    "title": "configurations",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.configuration.Configurations",
    "type": "object",
    "required": [
        "deliveryDate",
        "configurations"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "configurations": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.configuration.Configuration",
                "type": "object",
                "required": [
                    "id"
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "id": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "account": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "configurationType": {
                        "javaType": "com.sos.joc.model.configuration.ConfigurationType",
                        "type": "string",
                        "enum": [
                            "CUSTOMIZATION",
                            "IGNORELIST",
                            "PROFILE",
                            "SETTING",
                            "GLOBALS"
                        ]
                    },
                    "objectType": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "name": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "shared": {
                        "type": "boolean",
                        "default": false
                    },
                    "configurationItem": {
                        "description": "JSON object as string,  depends on configuration type",
                        "type": "string"
                    }
                }
            }
        },
        "defaultGlobals": {
            "description": "a map for arbitrary key-value pairs (String, GlobalSettingsSection)",
            "javaType": "com.sos.joc.model.configuration.globals.GlobalSettings",
            "type": "object",
            "additionalProperties": {
                "description": "a map for arbitrary key-value pairs (String, GlobalSettingsSectionEntry)",
                "javaType": "com.sos.joc.model.configuration.globals.GlobalSettingsSection",
                "type": "object",
                "properties": {
                    "ordering": {
                        "type": "integer",
                        "minimum": 0
                    }
                },
                "additionalProperties": {
                    "javaType": "com.sos.joc.model.configuration.globals.GlobalSettingsSectionEntry",
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                        "value": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "type": {
                            "javaType": "com.sos.joc.model.configuration.globals.GlobalSettingsSectionValueType",
                            "type": "string",
                            "enum": [
                                "TIMEZONE",
                                "DURATION",
                                "WEEKDAYS",
                                "TIME",
                                "ARRAY",
                                "POSITIVENUMBER",
                                "NONNEGATIVENUMBER",
                                "POSITIVEINTEGER",
                                "NONNEGATIVEINTEGER",
                                "STRING",
                                "PASSWORD",
                                "BOOLEAN"
                            ]
                        },
                        "default": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "ordering": {
                            "type": "integer",
                            "minimum": 0
                        }
                    }
                }
            }
        }
    }
}