{
    "$id": "https://example.com/schema.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "dsp config schema",
    "type": "array",
    "required": ["unit_of_work", "uow_active_hours_threshold", "schedule", "args"],
    "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
            "unit_of_work": {
                "type": "string"
            },
            "uow_active_hours_threshold": {
                "type": "integer"
            },
            "schedule": {
                "type": "string"
            },
            "time_zone": {
                "type": "string"
            },
            "frequency": {
                "type": "string"
            },
            "uow_active_days_limit": {
                "type": "integer"
            },
            "uow_complete_after_hours": {
                "type": "integer"
            },
            "timeframe_hours": {
                "type": "integer",
                "minimum": 1,
                "maximum": 23
            },
            "hours_offset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 23
            },
            "validation_thresholds": {
                "type": "object",
                "additionalProperties": false,
                "required": ["low", "high"],
                "properties": {
                    "low": {
                        "type": "integer"
                    },
                    "high": {
                        "type": "integer"
                    }
                }
            },
            "days_offset": {
                "type": "integer"
            },
            "args": {
                "type": "object",
                "required": ["dsp", "extension", "type", "version", "licensor", "valid_from"],
                "properties": {
                    "dsp": {
                        "type": "string"
                    },
                    "extension": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "subtype": {
                        "type": "string"
                    },
                    "version": {
                        "type": "string"
                    },
                    "licensor": {
                        "type": "string"
                    },
                    "valid_from": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    "valid_until": {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    }
                }
            }
        }
    }
}
