diff --git a/schemas/ro-dou.json b/schemas/ro-dou.json deleted file mode 100644 index 93531fe..0000000 --- a/schemas/ro-dou.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "type": "object", - "properties": { - "dag": { - "type": "object", - "description": "Instanciação da DAG", - "properties": { - "id": { - "type": "string", - "description": "Nome único da DAG" - }, - "description": { - "type": "string", - "description": "Descrição da DAG" - }, - "tags": { - "type": "array", - "description": "Lista de tags para filtragem da DAG no Airflow", - "items": { - "type": "string" - } - }, - "owner": { - "type": "array", - "description": "Lista de owners para filtragem da DAG no Airflow", - "items": { - "type": "string" - } - }, - "schedule": { - "type": "string", - "description": "Expressão cron" - }, - "dataset": { - "type": "string", - "description": "Nome do Dataset" - }, - "search": { - "oneOf": - [ - { - "type": "array", - "description": "Seção para definição da busca no Diário", - "items": { - "type": "object" - } - }, - { - "type": "object", - "description": "Seção para definição da busca no Diário", - "properties": { - "header": { - "type": "string", - "description": "Cabeçalho da consulta" - }, - "sources": { - "type": "array", - "description": "description", - "items": { - "type": "string", - "enum": ["QD", "DOU", "INLABS"] - } - }, - "territory_id": { - "oneOf": [ - { - "type": "integer", - "description": "Id do território no Querido Diário - QD", - }, - { - "type": "array", - "description": "Lista de Id do território no Querido Diário - QD", - "items": { - "type": "integer" - } - } - ] - }, - - "terms": { - "oneOf": [ - { - "type": "array", - "description": "Lista de termos de busca no Diário", - "items": { - "type": "string" - } - }, - { - "type": "object", - "description": "description", - "properties": { - "from_airflow_variable": { - "type": "string", - "description": "description" - }, - "from_db_select": { - "type": "object", - "description": "description", - "properties": { - "sql": { - "type": "string", - "description": "description" - }, - "conn_id": { - "type": "string", - "description": "description" - } - } - } - } - } - ] - }, - "department": { - "type": "array", - "description": "departamento para filtro na busca", - "items": { - "type": "string", - "description": "nome do departamento" - } - }, - "field": { - "type": "string", - "description": "description", - "enum": ["TUDO", "TITULO", "CONTEUDO"] - }, - "is_exact_search": { - "type": "boolean", - "description": "description" - }, - "ignore_signature_match": { - "type": "boolean", - "description": "description" - }, - "force_rematch": { - "type": "boolean", - "description": "description" - }, - "full_text": { - "type": "boolean", - "description": "description" - }, - "use_summary": { - "type": "boolean", - "description": "description" - }, - "date": { - "type": "string", - "description": "description", - "enum": [ - "DIA", - "SEMANA", - "MES", - "ANO" - ] - }, - "dou_sections": { - "type": "array", - "description": "description", - "items": { - "type": "string", - "enum": [ - "SECAO_1", - "SECAO_2", - "SECAO_3", - "EDICAO_EXTRA", - "EDICAO_EXTRA_1A", - "EDICAO_EXTRA_1B", - "EDICAO_EXTRA_1D", - "EDICAO_EXTRA_2A", - "EDICAO_EXTRA_2B", - "EDICAO_EXTRA_2D", - "EDICAO_EXTRA_3A", - "EDICAO_EXTRA_3B", - "EDICAO_EXTRA_3D", - "EDICAO_SUPLEMENTAR", - "TODOS" - ] - } - } - }, - "required": ["terms"], - "additionalProperties": false - } - ] - }, - "doc_md": { - "type": "string", - "description": "description" - }, - "report": { - "type": "object", - "description": "Aceita: `slack`, `discord`, `emails`, `attach_csv`, `subject`, `skip_null`", - "properties": { - "slack": { - "type": "object", - "description": "description", - "properties": { - "webhook": { - "type": "string", - "description": "description", - "format": "uri-reference" - } - }, - "required": ["webhook"], - "additionalProperties": false - }, - "discord": { - "type": "object", - "description": "description", - "properties": { - "webhook": { - "type": "string", - "description": "description", - "format": "uri-reference" - } - }, - "required": ["webhook"], - "additionalProperties": false - }, - "emails": { - "type": "array", - "description": "description", - "items": { - "type": "string", - "format": "email" - } - }, - "attach_csv": { - "type": "boolean", - "description": "description" - }, - "subject": { - "type": "string", - "description": "description" - }, - "skip_null": { - "type": "boolean", - "description": "description" - }, - "hide_filters": { - "type": "boolean", - "description": "description" - }, - "header_text": { - "type": "string", - "description": "description" - }, - "footer_text": { - "type": "string", - "description": "description" - }, - "no_results_found_text": { - "type": "string", - "description": "description" - } - }, - "additionalProperties": false - } - }, - "required": ["id", "description", "search", "report"], - "additionalProperties": false - } - }, - "required": ["dag"], - "additionalProperties": false -}