{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-airline-schema.json",
  "title": "Airline",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-airlines-api-openapi.yml#/components/schemas/Airline",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Airline name."
    },
    "country": {
      "type": "string",
      "description": "Country where the airline is based."
    },
    "year_created": {
      "type": "string",
      "description": "Year the airline was founded or created."
    },
    "base": {
      "type": "string",
      "description": "Base airport or hub."
    },
    "iata": {
      "type": "string",
      "description": "2-character IATA airline code."
    },
    "icao": {
      "type": "string",
      "description": "3-character ICAO airline code."
    },
    "fleet": {
      "type": "object",
      "description": "Object containing fleet information with aircraft type codes as keys and counts as values, plus a total field.",
      "properties": {
        "total": {
          "type": "integer",
          "description": "Total number of aircraft in the fleet."
        }
      },
      "additionalProperties": {
        "type": "integer"
      }
    },
    "logo_url": {
      "type": "string",
      "description": "URL to the airline's full logo image."
    },
    "brandmark_url": {
      "type": "string",
      "description": "URL to the airline's brandmark image."
    },
    "tail_logo_url": {
      "type": "string",
      "description": "URL to the airline's tail logo image."
    }
  }
}