{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/flight-offers-price-detailed-fare-rules-schema.json",
  "title": "DetailedFareRules",
  "description": "DetailedFareRules schema from Flight Offers Price",
  "type": "object",
  "properties": {
    "fareBasis": {
      "type": "string",
      "example": "VRDFR9"
    },
    "name": {
      "type": "string",
      "example": "Sample Name"
    },
    "fareNotes": {
      "properties": {
        "category": {
          "type": "string",
          "description": "This defines what type of modification is concerned in this rule.",
          "enum": [
            "REFUND",
            "EXCHANGE",
            "REVALIDATION",
            "REISSUE",
            "REBOOK",
            "CANCELLATION"
          ],
          "example": "EXCHANGE"
        },
        "circumstances": {
          "type": "string",
          "example": "string-value"
        },
        "notApplicable": {
          "type": "boolean",
          "example": true
        },
        "maxPenaltyAmount": {
          "type": "string",
          "example": "199.50"
        },
        "descriptions": {
          "type": "array",
          "items": {
            "title": "Description",
            "properties": {
              "descriptionType": {
                "type": "string",
                "example": "Sample description text."
              },
              "text": {
                "type": "string",
                "example": "string-value"
              }
            }
          }
        }
      }
    },
    "segmentId": {
      "description": "Id of the segment concerned by the fare rule",
      "type": "string",
      "example": "1"
    }
  }
}