{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update Custom Attribute",
  "description": "Replace the closed set of values for an existing custom attribute. The key and scope are immutable.",
  "type": "object",
  "required": ["values"],
  "properties": {
    "required": {
      "type": "boolean",
      "title": "Required",
      "description": "Whether this attribute must be set when creating a resource at the specified scope."
    },
    "values": {
      "type": "array",
      "title": "Allowed Values",
      "description": "The closed set of values this attribute may take. Must contain at least one entry, no duplicates, and may not contain the literal \"*\" (reserved for a future \"any value\" semantic). Replaces the current set in full.",
      "items": { "type": "string", "minLength": 1 },
      "minItems": 1,
      "uniqueItems": true,
      "examples": [["payments", "identity", "checkout"]]
    }
  }
}
