{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-location-schema.json",
  "title": "Location",
  "description": "Physical location of the product.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-availability-openapi.yml#/components/schemas/Location",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier of the location. \n\n**Note**: The value should be provided in the `site`:`rack` format."
    },
    "site": {
      "type": "string",
      "description": "Site code, defined when the site is created. The value should match the `site` query/path parameter value."
    },
    "rack": {
      "type": "string",
      "description": "Rack number."
    },
    "rackName": {
      "type": "string",
      "description": "Name of the rack."
    },
    "order": {
      "type": "number",
      "description": "Order of the location, expressed as a number.",
      "minimum": 0
    }
  },
  "required": [
    "id",
    "site",
    "order"
  ]
}