{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sweetvaluelab-com/json-schema/sweetvaluelab-com-profile-input-schema.json",
  "title": "ProfileInput",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sweetvaluelab-com-openapi.json#/components/schemas/ProfileInput",
  "type": "object",
  "required": [
    "penName",
    "links"
  ],
  "properties": {
    "penName": {
      "type": "string",
      "maxLength": 60,
      "description": "How the author is credited. A pen name is fine."
    },
    "slug": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
      "description": "The author page's path segment, `/authors/<slug>`. Derived from the pen name when omitted."
    },
    "role": {
      "type": "string",
      "maxLength": 80
    },
    "bio": {
      "type": "string",
      "maxLength": 600,
      "description": "Only facts a reader could verify."
    },
    "links": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "items": {
        "type": "object",
        "required": [
          "url"
        ],
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "pattern": "^https://"
          },
          "handle": {
            "type": "string"
          }
        }
      },
      "description": "Public pages that back the identity. At least one."
    }
  }
}