{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/iterruptivo-com/json-schema/iterruptivo-com-article-create-schema.json",
  "title": "ArticleCreate",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/iterruptivo-com-openapi.json#/components/schemas/ArticleCreate",
  "properties": {
    "slug": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "title": "Slug"
    },
    "title": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Title"
    },
    "excerpt": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Excerpt"
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "title": "Content"
    },
    "category": {
      "type": "string",
      "enum": [
        "ai-dev",
        "devsecops",
        "build",
        "insights",
        "cyber",
        "cases",
        "tutorials"
      ],
      "title": "Category"
    },
    "author": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Author"
    },
    "author_avatar": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Author Avatar"
    },
    "cover_image": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Cover Image"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "locale": {
      "type": "string",
      "enum": [
        "es",
        "en"
      ],
      "title": "Locale",
      "default": "es"
    },
    "seo_title": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Seo Title"
    },
    "seo_description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Seo Description"
    },
    "created_by": {
      "type": "string",
      "maxLength": 100,
      "title": "Created By",
      "default": "human"
    },
    "translation_of": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Translation Of"
    }
  },
  "type": "object",
  "required": [
    "slug",
    "title",
    "content",
    "category",
    "author"
  ]
}