{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitraffic-fi/json-schema/digitraffic-fi-update-infos-dto-v1-schema.json",
  "title": "UpdateInfosDtoV1",
  "description": "Info about API data updates (update intervals, last updated times)",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitraffic-fi-info-v1-api-openapi.yml#/components/schemas/UpdateInfosDtoV1",
  "required": [
    "dataUpdatedTime"
  ],
  "type": "object",
  "properties": {
    "dataUpdatedTime": {
      "type": "string",
      "description": "Data last updated time",
      "format": "date-time"
    },
    "updateTimes": {
      "type": "array",
      "description": "Update times for APIs",
      "items": {
        "$ref": "#/$defs/UpdateInfoDtoV1"
      }
    }
  },
  "$defs": {
    "UpdateInfoDtoV1": {
      "required": [
        "api",
        "dataUpdatedTime",
        "recommendedFetchInterval"
      ],
      "type": "object",
      "properties": {
        "api": {
          "type": "string",
          "description": "Url of the API"
        },
        "subtype": {
          "type": "string",
          "description": "More specific info about API. Ie. domain info."
        },
        "dataUpdatedTime": {
          "type": "string",
          "description": "Data last updated time",
          "format": "date-time"
        },
        "dataCheckedTime": {
          "type": "string",
          "description": "Latest check for data updates.  <br>\n`null` value indicates data being pushed to our platform or static data that is only updated when needed.",
          "format": "date-time"
        },
        "dataUpdateInterval": {
          "type": "string",
          "description": "Data update interval in ISO-8601 duration format `PnDTnHnMn.nS`. <br>\n`P0S` means that data is updated in nearly real time. <br>\n`null` means that data is static and updated only when needed."
        },
        "recommendedFetchInterval": {
          "type": "string",
          "description": "Recommended fetch interval for clients in ISO-8601 duration format `PnDTnHnMn.nS`"
        }
      },
      "description": "Info about API data updates (update intervals, last updated times)"
    }
  }
}