{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artashippinginc/json-schema/artashippinginc-tag-schema.json",
  "title": "Tag",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artashippinginc-tags-api-openapi.yml#/components/schemas/Tag",
  "properties": {
    "color": {
      "description": "The hexadecimal color code for the tag, without the leading `#`.",
      "maxLength": 6,
      "minLength": 6,
      "pattern": "^[0-9A-F]{6}$",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "created_at": {
      "description": "A NaiveDatetime-formatted timestamp describing when the resource was created with microsecond precision",
      "format": "date-time",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "created_by": {
      "description": "The user ID associated with the user who created the tag when applicable.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    },
    "description": {
      "description": "An optional, brief description for this tag.",
      "maxLength": 255,
      "type": [
        "string",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    },
    "id": {
      "description": "The id of the tag in UUID format",
      "format": "uuid",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "is_active": {
      "description": "Indicates whether or not the tag is active. Inactive tags may not be associated to new resources",
      "type": "boolean",
      "x-struct": null,
      "x-validate": null
    },
    "name": {
      "description": "The name for the tag. It may contain lower case letters, dashes, and alphanumeric characters only. The maximum character count is 50.",
      "maxLength": 50,
      "pattern": "^[a-z0-9-]{1,50}$",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "updated_at": {
      "description": "A NaiveDatetime-formatted timestamp describing when the resource was last updated with microsecond precision",
      "format": "date-time",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "updated_by": {
      "description": "The user ID associated with the last user to edit the tag when applicable.",
      "format": "int64",
      "type": [
        "integer",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    }
  },
  "type": "object",
  "x-struct": "Elixir.DocsWeb.Schemas.Response.Tag",
  "x-validate": null
}