{
  "classes": [
    {
      "constants": [],
      "types": [],
      "name": "@eryx/schema/optional",
      "tags": [],
      "functions": [
        {
          "source": {
            "path": "",
            "line": 68
          },
          "is_method": true,
          "signature": "schema:default<T>(\n    value: T  -- Default value returned when parsed input is nil.\n) → (\n      -- A new optional schema with default handling. \n)",
          "owner": "schema",
          "desc": "Attach a default value used when an optional input is nil.\nDefaults are materialized during parsing. This is especially useful for\nstruct fields that should always exist in parsed output.",
          "tags": [],
          "name": "default",
          "return_str": "OptionalSchema<T>",
          "function_type": "Method",
          "returns": [
            {
              "lua_type": "OptionalSchema<T>",
              "desc": "A new optional schema with default handling. "
            }
          ],
          "params": [
            {
              "lua_type": "T",
              "name": "value",
              "desc": "Default value returned when parsed input is nil."
            }
          ]
        }
      ],
      "properties": [],
      "source": {
        "path": "",
        "line": 0
      },
      "desc": "Optional schema primitives.\nWraps child schemas so nil is accepted and optional defaults can be applied.\nUseful for patch/update payloads and backward-compatible input evolution.\n"
    },
    {
      "is_primary_export": false,
      "source": {
        "path": "",
        "line": 16
      },
      "tags": [],
      "properties": [],
      "desc": "",
      "name": "OptionalSchema",
      "functions": [
        {
          "source": {
            "path": "",
            "line": 23
          },
          "is_method": true,
          "signature": "OptionalSchema:default(value: T) → OptionalSchema<T>",
          "desc": "",
          "tags": [],
          "name": "default",
          "return_str": "OptionalSchema<T>",
          "function_type": "Method",
          "returns": [
            {
              "lua_type": "OptionalSchema<T>",
              "desc": ""
            }
          ],
          "params": [
            {
              "lua_type": "T",
              "name": "value",
              "desc": ""
            }
          ]
        }
      ],
      "metamethods": [],
      "types": []
    }
  ]
}