{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ometria/json-schema/ometria-custom-field-update-schema.json",
  "title": "CustomFieldUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ometria-custom-fields-api-openapi.yml#/components/schemas/CustomFieldUpdate",
  "properties": {
    "id": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^\\S+$",
      "title": "Id",
      "description": "The identifier of the custom field"
    },
    "category": {
      "$ref": "#/$defs/CustomFieldCategory",
      "description": "The category of the custom field"
    },
    "title": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        }
      ],
      "title": "Title",
      "description": "The title of the custom field"
    },
    "status": {
      "anyOf": [
        {
          "$ref": "#/$defs/CustomFieldStatus"
        }
      ],
      "description": "The status of the custom field"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "category"
  ],
  "$defs": {
    "CustomFieldCategory": {
      "type": "string",
      "enum": [
        "contact",
        "order"
      ],
      "title": "CustomFieldCategory"
    },
    "CustomFieldStatus": {
      "type": "string",
      "enum": [
        "active",
        "archived"
      ],
      "title": "CustomFieldStatus"
    }
  }
}