{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://market.example/schemas/home-office-furniture-7.json",
  "title": "Home office furniture attributes",
  "description": "Marketplace-defined attributes used by home-office furniture listings.",
  "type": "object",
  "required": [
    "category",
    "materials",
    "made_to_order",
    "processing_days",
    "dimensions"
  ],
  "additionalProperties": false,
  "properties": {
    "category": {
      "type": "string",
      "title": "Category"
    },
    "materials": {
      "type": "array",
      "title": "Materials",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "made_to_order": {
      "type": "boolean",
      "title": "Made to order"
    },
    "processing_days": {
      "type": "integer",
      "minimum": 0,
      "title": "Processing time",
      "x-odp-unit": {
        "code": "d"
      },
      "x-odp-comparison": "numeric"
    },
    "dimensions": {
      "$ref": "#/$defs/dimensions"
    }
  },
  "$defs": {
    "dimensions": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "width_cm",
        "depth_cm",
        "minimum_height_cm",
        "maximum_height_cm"
      ],
      "properties": {
        "width_cm": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "depth_cm": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "minimum_height_cm": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "maximum_height_cm": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      }
    }
  }
}
