{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-create-author-body-schema.json",
  "title": "CreateAuthorBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-blog-authors-api-openapi.yml#/components/schemas/CreateAuthorBody",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "pattern": "^[a-z0-9-]+$",
      "description": "URL-friendly slug for the author. Auto-generated from `name` when omitted."
    },
    "bio": {
      "type": "string",
      "maxLength": 4000,
      "description": "Short biography for the author. Sanitized HTML."
    },
    "email": {
      "type": "string",
      "maxLength": 320,
      "format": "email",
      "description": "The author's email address."
    },
    "location": {
      "type": "string",
      "maxLength": 200,
      "description": "Free-text location label for the author (e.g. `Sydney, Australia`)."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "inactive"
      ],
      "description": "Author visibility status. One of `active` or `inactive`."
    },
    "avatarMediaId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Cavuno media ID of an uploaded avatar image. Pass `null` to clear it."
    },
    "websiteUrl": {
      "type": "string",
      "maxLength": 500,
      "description": "The author's personal website URL. Normalized to a canonical URL when stored."
    },
    "facebookUrl": {
      "type": "string",
      "maxLength": 500,
      "description": "The author's Facebook profile URL."
    },
    "twitterUrl": {
      "type": "string",
      "maxLength": 500,
      "description": "The author's X (Twitter) profile URL. Stored as the canonical `https://x.com/<handle>` URL."
    },
    "linkedinUrl": {
      "type": "string",
      "maxLength": 500,
      "description": "The author's LinkedIn profile URL."
    },
    "githubUrl": {
      "type": "string",
      "maxLength": 500,
      "description": "The author's GitHub profile URL."
    },
    "metaTitle": {
      "type": "string",
      "maxLength": 150,
      "description": "SEO meta title for the author page."
    },
    "metaDescription": {
      "type": "string",
      "maxLength": 320,
      "description": "SEO meta description for the author page."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The author's display name."
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}