{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-attribute-schema-object-schema.json",
  "title": "AttributeSchemaObject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-categories-api-openapi.yml#/components/schemas/AttributeSchemaObject",
  "type": "object",
  "properties": {
    "attributes": {
      "maxItems": 50,
      "type": "array",
      "items": {
        "$ref": "#/$defs/AttributeDefinitionObject"
      }
    }
  },
  "required": [
    "attributes"
  ],
  "$defs": {
    "AttributeDefinitionObject": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "string",
            "number",
            "integer",
            "boolean",
            "enum"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "min": {
          "type": "number"
        },
        "max": {
          "type": "number"
        },
        "max_length": {
          "type": "number"
        }
      },
      "required": [
        "key",
        "type"
      ]
    }
  }
}