{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-label-update-schema.json",
  "title": "labelUpdate",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-label-service-openapi.yml#/components/schemas/labelUpdate",
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of the label."
    },
    "overlay": {
      "$ref": "#/$defs/overlay"
    },
    "description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      ],
      "description": "Localized resource description in a form of a map of translations."
    }
  },
  "required": [
    "name",
    "description"
  ],
  "$defs": {
    "overlay": {
      "description": "If present and `isTrue` is actually true the label should be printed on associated products on the described position.",
      "properties": {
        "isTrue": {
          "type": "boolean"
        },
        "position": {
          "type": "number"
        }
      },
      "required": [
        "position"
      ]
    }
  }
}