{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/digitraffic-fi/json-schema/digitraffic-fi-faults-model-schema.json",
  "title": "FaultsModel",
  "description": "GeoJson FeatureCollection",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/digitraffic-fi-aton-fault-v1-api-openapi.yml#/components/schemas/FaultsModel",
  "required": [
    "features",
    "type"
  ],
  "type": "object",
  "properties": {
    "features": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FaultFeatureModel"
      }
    },
    "type": {
      "type": "string",
      "description": "FeatureCollection",
      "enum": [
        "FeatureCollection"
      ]
    }
  },
  "$defs": {
    "FaultFeatureModel": {
      "required": [
        "geometry",
        "properties",
        "type"
      ],
      "type": "object",
      "properties": {
        "geometry": {
          "type": "object",
          "description": "GeoJSON geometry"
        },
        "type": {
          "type": "string",
          "description": "Feature",
          "enum": [
            "Feature"
          ]
        },
        "properties": {
          "$ref": "#/$defs/FaultModel"
        }
      },
      "description": "GeoJson Feature"
    },
    "FaultModel": {
      "type": "object",
      "properties": {
        "entry_timestamp": {
          "type": "string",
          "description": "Created at timestamp",
          "format": "date-time"
        },
        "id": {
          "type": "string",
          "description": "Id"
        },
        "type": {
          "type": "string",
          "description": "Type",
          "format": "string"
        },
        "fixed_timestamp": {
          "type": "string",
          "description": "Fixed at timestamp",
          "format": "date-time"
        }
      },
      "description": "ATON Faults GeoJson"
    }
  }
}