{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/obsidianri-com/json-schema/obsidianri-com-news-list-response-schema.json",
  "title": "NewsListResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/obsidianri-com-openapi.json#/components/schemas/NewsListResponse",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/NewsListItem"
      },
      "type": "array",
      "title": "Data"
    },
    "meta": {
      "$ref": "#/$defs/PaginationMeta"
    },
    "filters_applied": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Filters Applied",
      "default": {}
    }
  },
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "IndustryMatch": {
      "properties": {
        "industry_id": {
          "type": "string",
          "title": "Industry Id"
        },
        "industry_name": {
          "type": "string",
          "title": "Industry Name",
          "default": ""
        },
        "score": {
          "type": "integer",
          "title": "Score",
          "default": 0
        },
        "matched_keywords": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Matched Keywords",
          "default": []
        },
        "matched_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matched At"
        },
        "validated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Validated At"
        },
        "validated": {
          "type": "boolean",
          "title": "Validated",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "industry_id"
      ],
      "title": "IndustryMatch"
    },
    "NewsListItem": {
      "properties": {
        "news_id": {
          "type": "string",
          "title": "News Id"
        },
        "url": {
          "type": "string",
          "title": "Url",
          "default": ""
        },
        "title": {
          "type": "string",
          "title": "Title",
          "default": ""
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "title_en": {
          "type": "string",
          "title": "Title En",
          "default": ""
        },
        "description_en": {
          "type": "string",
          "title": "Description En",
          "default": ""
        },
        "original_lang": {
          "type": "string",
          "title": "Original Lang",
          "default": ""
        },
        "pub_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pub Date"
        },
        "pub_date_ts": {
          "type": "integer",
          "title": "Pub Date Ts",
          "default": 0
        },
        "country": {
          "type": "string",
          "title": "Country",
          "default": ""
        },
        "jurisdiction_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Jurisdiction Ids",
          "default": []
        },
        "source_name": {
          "type": "string",
          "title": "Source Name",
          "default": ""
        },
        "source_short_name": {
          "type": "string",
          "title": "Source Short Name",
          "default": ""
        },
        "source_logo": {
          "type": "string",
          "title": "Source Logo",
          "default": ""
        },
        "industries": {
          "additionalProperties": {
            "$ref": "#/$defs/IndustryMatch"
          },
          "type": "object",
          "title": "Industries",
          "default": {}
        },
        "frameworks": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Frameworks",
          "default": []
        },
        "factory_has_article": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Factory Has Article"
        },
        "factory_severity": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Factory Severity"
        },
        "factory_change_nature": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Factory Change Nature"
        },
        "news_kind": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "News Kind"
        },
        "news_kind_confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "News Kind Confidence"
        },
        "news_kind_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "News Kind Source"
        },
        "news_event_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "News Event Type"
        },
        "news_milestone": {
          "anyOf": [
            {
              "$ref": "#/$defs/NewsMilestone"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object",
      "required": [
        "news_id"
      ],
      "title": "NewsListItem",
      "description": "Lightweight news item for list endpoints (no content_text)."
    },
    "NewsMilestone": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "sure": {
          "type": "boolean",
          "title": "Sure",
          "default": false
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Label"
        }
      },
      "type": "object",
      "required": [
        "type"
      ],
      "title": "NewsMilestone",
      "description": "The DATES axis of a news (2026-09-27, option B) : the one dated step the\nnews is about. type : proposal, adoption, publication, entry_into_force,\napplication, application_phase, transition_end, consultation_close,\ncomment_deadline, compliance_deadline, transposition_deadline,\nreporting_deadline, sunset, repeal, other. date : ISO day, present only\nwhen the text gives a full date (sure true). source : rules, llm or hint.\nThe time status (upcoming, since, closed...) is computed by the reader,\nnever stored."
    },
    "PaginationMeta": {
      "properties": {
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "page": {
          "type": "integer",
          "title": "Page"
        },
        "per_page": {
          "type": "integer",
          "title": "Per Page"
        },
        "total_pages": {
          "type": "integer",
          "title": "Total Pages"
        }
      },
      "type": "object",
      "required": [
        "total",
        "page",
        "per_page",
        "total_pages"
      ],
      "title": "PaginationMeta"
    }
  }
}