{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnautical-com/json-schema/arcnautical-com-fleet-changes-schema.json",
  "title": "FleetChanges",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnautical-com-fleets-api-openapi.yml#/components/schemas/FleetChanges",
  "type": "object",
  "required": [
    "fleet_id",
    "changes"
  ],
  "properties": {
    "fleet_id": {
      "type": "string",
      "format": "uuid"
    },
    "since": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "changes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "imo": {
            "type": "string"
          },
          "changed_at": {
            "type": "string",
            "format": "date-time"
          },
          "screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "previous_screening_id": {
            "type": "string",
            "format": "uuid"
          },
          "severity": {
            "type": "string",
            "enum": [
              "critical",
              "high",
              "low"
            ]
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "enum": [
                    "sanctions_status",
                    "ownership_opacity",
                    "vetting_grade"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                },
                "worse": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    }
  }
}