{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ledigt.org/schema/1.0/feed.schema.json",
  "title": "ledigt.org 1.0 feed file",
  "description": "One feed file with the listings of one category. Max 5000 listings or 10 MB; split into several files beyond that.",
  "type": "object",
  "required": ["ledigt", "category", "generated", "listings"],
  "properties": {
    "$schema": { "type": "string" },
    "ledigt": { "type": "string", "pattern": "^1\\.[0-9]+$" },
    "category": { "enum": ["residential"], "description": "The only category in 1.0. commercial, storage and parking are reserved for future versions." },
    "generated": { "$ref": "listing.schema.json#/$defs/dateOrDateTime" },
    "listings": {
      "type": "array",
      "maxItems": 5000,
      "items": { "$ref": "listing.schema.json" }
    }
  },
  "patternProperties": { "^x-": true },
  "additionalProperties": false
}
