{
    "$id": "https://example.com/schema.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "dsp specific settings schema",
    "type": "object",
    "additionalProperties": false,
    "patternProperties": {
        "^[\\w_]+$": {
            "type": "object",
            "additionalProperties": false,
            "required": [
                "uow_active_days_limit",
                "implementations",
                "days_offset",
                "validation_thresholds"
            ],
            "properties": {
                "uow_active_days_limit": {
                    "type": "integer"
                },
                "concurrency_limit": {
                    "type": "integer",
                    "minimum": 0
                },
                "default_priority_hrs": {
                    "type": "integer",
                    "minimum": 24,
                    "maximum": 48
                },
                "implementations": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                            "rule",
                            "label"
                        ],
                        "properties": {
                            "rule": {
                                "type": "string"
                            },
                            "label": {
                                "type": "string"
                            },
                            "flow": {
                                "type": "string",
                                "enum": [
                                    "standard",
                                    "apollo_api_flow",
                                    "gdpr_appreciationengine_email",
                                    "appreciationengine_flow",
                                    "ddex_release_flow",
                                    "spotify_charts_flow",
                                    "apple_music_charts_flow",
                                    "dapd_apollo_sync_flow"
                                ]
                            }
                        }
                    }
                },
                "days_offset": {
                    "type": "integer"
                },
                "validation_thresholds": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                        "low",
                        "high"
                    ],
                    "properties": {
                        "low": {
                            "type": "integer"
                        },
                        "high": {
                            "type": "integer"
                        }
                    }
                }
            }
        }
    }
}
