{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atisrelay-com/json-schema/atisrelay-com-aircraft-schema.json",
  "title": "Aircraft",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atisrelay-com-openapi.json#/components/schemas/Aircraft",
  "type": "object",
  "properties": {
    "n_number": {
      "type": "string"
    },
    "serial_number": {
      "type": "string"
    },
    "year_mfr": {
      "type": "integer"
    },
    "registrant_type": {
      "type": "string"
    },
    "registrant_type_name": {
      "type": "string"
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "country": {
      "type": [
        "string",
        "null"
      ]
    },
    "certification": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "status_code": {
      "type": "string"
    },
    "expiration_date": {
      "type": "string"
    },
    "mode_s_code": {
      "type": "string"
    },
    "mode_s_hex": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "owner_name": {
      "type": "string"
    },
    "aircraft_type": {
      "$ref": "#/$defs/AircraftType"
    },
    "engine": {
      "$ref": "#/$defs/Engine"
    }
  },
  "$defs": {
    "AircraftType": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "mfr": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "type_aircraft": {
          "type": "string"
        },
        "type_engine": {
          "type": "string"
        },
        "ac_cat": {
          "type": "string"
        },
        "build_cert_ind": {
          "type": "string"
        },
        "no_eng": {
          "type": "integer"
        },
        "no_seats": {
          "type": "integer"
        },
        "ac_weight": {
          "type": "string"
        },
        "speed": {
          "type": "integer"
        },
        "performance_class": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "piston",
            "turboprop",
            "jet",
            "rotorcraft"
          ]
        }
      }
    },
    "Engine": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "mfr": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "engine_type": {
          "type": "string"
        },
        "horsepower": {
          "type": "integer"
        },
        "thrust": {
          "type": "integer"
        }
      }
    }
  }
}