{
  "type": "object",
  "properties": {
    "status": {
      "type": [
        "string",
        "integer"
      ],
      "enum": [
        "0",
        "1",
        0,
        1
      ]
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "errorMessage": {
        "minLength": "Category name is required"
      }
    },
    "url_key": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "comment_policy": {
      "type": "string",
      "enum": [
        "open",
        "moderated",
        "closed"
      ]
    },
    "short_description": {
      "type": [
        "string",
        "null"
      ]
    },
    "position": {
      "type": [
        "integer",
        "string",
        "null"
      ]
    },
    "meta_title": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta_description": {
      "type": [
        "string",
        "null"
      ]
    },
    "metafields": {
      "type": "object",
      "skipEscape": true
    }
  },
  "additionalProperties": true,
  "required": [
    "name"
  ]
}
