{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amadeus/refs/heads/main/json-schema/seatmap-display-facility-schema.json",
  "title": "Facility",
  "description": "Facility schema from Seatmap Display",
  "type": "object",
  "properties": {
    "code": {
      "description": "Facility code, as described in the facility dictionary",
      "type": "string",
      "example": "string-value"
    },
    "column": {
      "type": "string",
      "example": "string-value"
    },
    "row": {
      "type": "string",
      "example": "string-value"
    },
    "position": {
      "type": "string",
      "description": "Position is either front, rear or seat (in case the facility takes the place of a seat)",
      "enum": [
        "FRONT",
        "REAR",
        "SEAT"
      ],
      "example": "FRONT"
    },
    "coordinates": {
      "type": "object",
      "properties": {
        "x": {
          "type": "integer",
          "description": "coordinate for the Length",
          "example": 1
        },
        "y": {
          "type": "integer",
          "description": "coordinate for the Width",
          "example": 1
        }
      }
    }
  }
}