{
    "$id": "https://example.com/schema.json",
    "$schema": "http://json-schema.org/draft-07/schema#",
    "description": "app etl schema",
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "unit_of_work": {
                "type": "string"
            },
            "schedule": {
                "type": "string"
            },
            "frequency": {
                "type": "string"
            },
            "data_source": {
                "type": "string"
            },
            "args": {
                "type": "object",
                "required": [
                    "dsp",
                    "report_type",
                    "unit_type",
                    "valid_from",
                    "days_offset"
                ],
                "properties": {
                    "dsp": {
                        "type": "string"
                    },
                    "report_type": {
                        "type": "string"
                    },
                    "unit_type": {
                        "type": "string"
                    },
                    "dbx_job_id": {
                        "type": "integer"
                    },
                    "valid_from": {
                        "type": "string"
                    },
                    "valid_until": {
                        "type": "string"
                    },
                    "dbx_spark_params": {
                        "type": "array"
                    },
                    "env": {
                        "type": "string"
                    },
                    "include_on_hold": {
                        "type": "boolean"
                    },
                    "days_offset": {
                        "type": "integer"
                    },
                    "dbx_job_max_lifetime": {
                        "type": "integer"
                    },
                    "dependencies_type": {
                        "type": "string"
                    }
                }
            },
            "dependencies": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "type": {
                            "type": "string"
                        },
                        "name": {
                            "type": "string"
                        },
                        "is_single_context": {
                            "type": "boolean"
                        },
                        "is_optional": {
                            "type": "boolean"
                        },
                        "frequency": {
                            "type": "string"
                        },
                        "days_offset": {
                            "type": "integer"
                        }
                    }
                }
            }
        }
    }
}
