{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-availability-dto-schema.json",
  "title": "AvailabilityDto",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-availability-openapi.yml#/components/schemas/AvailabilityDto",
  "type": "object",
  "properties": {
    "stockLevel": {
      "type": "number",
      "description": "Stock level of the product, expressed as a number."
    },
    "available": {
      "type": "boolean",
      "description": "Flag indicating whether the product is available."
    },
    "popularity": {
      "type": "integer",
      "description": "Popularity of the product, expressed as a number."
    },
    "distributionChannel": {
      "$ref": "#/$defs/DistributionChannel"
    },
    "mixins": {
      "type": "object",
      "description": "The field contains mixins values.",
      "additionalProperties": true
    },
    "metadata": {
      "type": "object",
      "properties": {
        "mixins": {
          "type": "object",
          "description": "Links to the mixin schemas.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "DistributionChannel": {
      "type": "string",
      "description": "Name of the product distribution channel.",
      "enum": [
        "ASSORTMENT",
        "HOME_DELIVERY",
        "PICKUP"
      ]
    }
  }
}