{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nav-no/json-schema/nav-no-feed-schema.json",
  "title": "Feed",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nav-no-stilling-feed-openapi.yml#/components/schemas/Feed",
  "type": "object",
  "properties": {
    "version": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "home_page_url": {
      "type": "string"
    },
    "feed_url": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "next_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "next_id": {
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FeedLine"
      }
    }
  },
  "required": [
    "version",
    "title",
    "home_page_url",
    "feed_url",
    "description",
    "id",
    "items"
  ],
  "$defs": {
    "FeedEntry": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "businessName": {
          "type": "string"
        },
        "municipal": {
          "type": "string"
        },
        "sistEndret": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "uuid",
        "status",
        "title",
        "businessName",
        "municipal",
        "sistEndret"
      ]
    },
    "FeedLine": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "content_text": {
          "type": "string"
        },
        "date_modified": {
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "_feed_entry": {
          "$ref": "#/$defs/FeedEntry"
        }
      },
      "required": [
        "id",
        "url",
        "title",
        "content_text",
        "_feed_entry"
      ]
    }
  }
}