{
  "$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-general-remark-schema.json",
  "title": "GeneralRemark",
  "description": "GeneralRemark schema from Flight Create Orders",
  "type": "object",
  "properties": {
    "subType": {
      "description": "general remark type",
      "type": "string",
      "enum": [
        "GENERAL_MISCELLANEOUS",
        "CONFIDENTIAL",
        "INVOICE",
        "QUALITY_CONTROL",
        "BACKOFFICE",
        "FULFILLMENT",
        "ITINERARY",
        "TICKETING_MISCELLANEOUS",
        "TOUR_CODE"
      ],
      "example": "GENERAL_MISCELLANEOUS"
    },
    "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"
    }
  },
  "required": [
    "subType",
    "text"
  ]
}