SchemaResponseModule
PackageAxial.Hosting.GenHttp
Builds GenHTTP responses for schema-driven endpoints.
Summary
| Name | Signature | Synopsis |
|---|
| Operations |
| problem | SchemaResponse.problem request parsed | A 400 application/problem+json response rendering the failed parse's diagnostics. |
| codec | SchemaResponse.codec codec status request value | A JSON response rendering the trusted model through the compiled codec. |
| openApi | SchemaResponse.openApi request document | Serves a pre-assembled OpenAPI document (see document). |
Operations
kind:member
SchemaResponse.problem request parsed
MemberA 400 application/problem+json response rendering the failed parse's diagnostics.
Parameters
| Name | Type | Description |
|---|
| request | IRequest | |
| parsed | RetainedParseResult<'model> | |
kind:member
SchemaResponse.codec codec status request value
MemberA JSON response rendering the trusted model through the compiled codec.
Parameters
| Name | Type | Description |
|---|
| codec | JsonCodec<'model> | |
| status | ResponseStatus | |
| request | IRequest | |
| value | 'model | |
kind:member
SchemaResponse.openApi request document
MemberServes a pre-assembled OpenAPI document (see document).
Parameters
| Name | Type | Description |
|---|
| request | IRequest | |
| document | string | |