{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-create-orders-remarks-schema.json",
  "title": "Remarks",
  "description": "remarks",
  "type": "object",
  "properties": {
    "general": {
      "description": "list of general remarks",
      "type": "array",
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "title": "GeneralRemark",
        "type": "object",
        "required": [
          "subType",
          "text"
        ],
        "properties": {
          "subType": {
            "$ref": "#/definitions/GeneralRemarkType"
          },
          "category": {
            "description": "remark category",
            "type": "string",
            "example": "Z",
            "pattern": "[A-Z]{1}"
          },
          "text": {
            "description": "remark free text",
            "type": "string",
            "example": "PASSENGER NEED ASSISTANCE"
          },
          "travelerIds": {
            "description": "Id of the concerned traveler",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": "1"
          },
          "flightOfferIds": {
            "description": "Id of the concern flightOffers",
            "type": "array",
            "minItems": 1,
            "maxItems": 6,
            "items": {
              "type": "string"
            },
            "example": "1"
          }
        }
      }
    },
    "airline": {
      "description": "list of airline remarks",
      "type": "array",
      "minItems": 0,
      "maxItems": 200,
      "items": {
        "title": "AirlineRemark",
        "type": "object",
        "required": [
          "subType",
          "airlineCode",
          "text"
        ],
        "properties": {
          "subType": {
            "$ref": "#/definitions/AirlineRemarkType"
          },
          "keyword": {
            "description": "keyword code - only applicable for subType Keyword",
            "type": "string",
            "example": "PARK"
          },
          "airlineCode": {
            "description": "Code of the airline following IATA standard ([IATA table codes](http://www.iata.org/publications/Pages/code-search.aspx))\n\nWhen it apply to any airline, value is YY.\n",
            "type": "string",
            "example": "AF"
          },
          "text": {
            "description": "remark free text",
            "type": "string",
            "example": "CAR PARK"
          },
          "travelerIds": {
            "description": "Id of the concerned traveler",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": "1"
          },
          "flightOfferIds": {
            "description": "Id of the concern flightOffers",
            "type": "array",
            "minItems": 1,
            "maxItems": 6,
            "items": {
              "type": "string"
            },
            "example": "1"
          }
        }
      }
    }
  }
}