/**
 * ⚠️ WARNING: THIS FILE IS AUTO-GENERATED ⚠️
 * 
 * This file is generated by the type generation system.
 * Any manual changes will be overwritten on next server start and should always be committed.
 * 
 */

import { Type } from "@sinclair/typebox"

export const TagUpdateSchema = {
  $id: "#tag/update",
  title: "core/tag-update",
  type: "object",
  properties: {
    project: {
      type: "string",
    },
    title: {
      maxLength: 200,
      type: "string",
    },
    tags: {
      type: "array",
      items: {
        type: "string",
      },
    },
    color: {
      pattern: "^#([0-9a-fA-F]{3}){1,2}$",
      type: "string",
    },
    type: {
      enum: [
        "status",
        "milestone",
        "content",
        "user",
        "project",
        "category",
        "event",
        "system",
      ],
      maxLength: 50,
      type: "string",
    },
    owner: {
      type: "string",
    },
    order: {
      type: "number",
    },
    locked: {
      type: "boolean",
    },
  },
  required: [],
}



export default TagUpdateSchema
