SchemaResultModule
PackageAxial.Hosting.AspNetCore
Builds IResult values for schema-driven endpoints.
Summary
| Name | Signature | Synopsis |
|---|
| Operations |
| problem | SchemaResult.problem parsed | A 400 application/problem+json response rendering the failed parse's diagnostics. |
| codec | SchemaResult.codec codec statusCode value | A JSON response streaming the trusted model through the compiled codec. |
| openApi | SchemaResult.openApi document | Serves a pre-assembled OpenAPI document (see document). |
Operations
kind:member
SchemaResult.problem parsed
MemberA 400 application/problem+json response rendering the failed parse's diagnostics.
Parameters
| Name | Type | Description |
|---|
| parsed | RetainedParseResult<'model> | |
kind:member
SchemaResult.codec codec statusCode value
MemberA JSON response streaming the trusted model through the compiled codec.
Parameters
| Name | Type | Description |
|---|
| codec | JsonCodec<'model> | |
| statusCode | int | |
| value | 'model | |
kind:member
SchemaResult.openApi document
MemberServes a pre-assembled OpenAPI document (see document).
Parameters
| Name | Type | Description |
|---|
| document | string | |