{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artashippinginc/json-schema/artashippinginc-collection-tag-rule-create-schema.json",
  "title": "CollectionTagRuleCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artashippinginc-collection-tag-rules-api-openapi.yml#/components/schemas/CollectionTagRuleCreate",
  "properties": {
    "collection_tag_rule": {
      "oneOf": [
        {
          "properties": {
            "pattern": {
              "description": "The pattern to match against shipment tags. For exact_match, this should be the exact tag name. For pattern_match, supports * wildcard.",
              "maxLength": 100,
              "type": "string",
              "x-struct": null,
              "x-validate": null
            }
          },
          "required": [
            "pattern"
          ],
          "type": "object",
          "x-struct": null,
          "x-validate": null
        },
        {
          "properties": {
            "tag_id": {
              "description": "The ID of the tag to match against shipment tags.",
              "type": "uuid",
              "x-struct": null,
              "x-validate": null
            }
          },
          "required": [
            "tag_id"
          ],
          "type": "object",
          "x-struct": null,
          "x-validate": null
        }
      ],
      "type": "object",
      "x-struct": null,
      "x-validate": null
    }
  },
  "type": "object",
  "x-struct": "Elixir.DocsWeb.Schemas.RequestBody.CollectionTagRuleCreate",
  "x-validate": null
}