Directories ¶
Path | Synopsis |
---|---|
This example shows how to handle omittable/nullable fields and an optional body in JSON input.
|
This example shows how to handle omittable/nullable fields and an optional body in JSON input. |
This example show how to respond to API requests with different versions of the response body.
|
This example show how to respond to API requests with different versions of the response body. |
This example shows how to reuse a parameter in the path and body.
|
This example shows how to reuse a parameter in the path and body. |
This example shows how to use resolvers to provide additional validation for params and body fields, and how exhaustive errors are returned.
|
This example shows how to use resolvers to provide additional validation for params and body fields, and how exhaustive errors are returned. |
This example shows how to use the CLI to create a server with a command to print the OpenAPI spec.
|
This example shows how to use the CLI to create a server with a command to print the OpenAPI spec. |
This example shows how to use Server Sent Events (SSE) with Huma to send messages to a client over a long-lived connection.
|
This example shows how to use Server Sent Events (SSE) with Huma to send messages to a client over a long-lived connection. |
An example showing how to use Huma v1 middleware in a Huma v2 project.
|
An example showing how to use Huma v1 middleware in a Huma v2 project. |
Click to show internal directories.
Click to hide internal directories.