Logo Orsak

Orsak.AspNetCore.OpenApi Namespace

Type Description

EffectEndpointsTransformer

Adds the endpoints mapped with MapEffectEndpoints to an OpenAPI document. Their operations are described from what can be read from them, with explicit metadata first:

  • the operation id from WithName, or the name of the handler's function;
  • the tag from WithTags, or the module of the handler's function;
  • the summary and description from WithSummary and WithDescription, or the <summary> and <remarks> of the handler's XML docs;
  • the path parameters, typed by their route constraints and described by the docs' <param>;
  • the responses in the metadata, such as those the runner describes with IDescribeResponses, or Produces, described by the docs' <response code="..."> and <returns>. Without a success response, the operation has a 200 with the effect's result as its body. Their schemas are components of the document, referred to by the ids of OpenApiOptions.CreateSchemaReferenceId, as the generator's own are.

FSharpSchemaOptionsExtensions

Adds the description of F# types to OpenAPI documents.

FSharpSchemaTransformer

Describes common F# types as System.Text.Json writes them, which the generator describes as it would any .NET type:

  • an option or value option is its value, or null, rather than a component of its own, and a record's option fields aren't required, since a missing one is None;
  • an F# list, set or map is never null, and a set's items are unique.

OpenApiOptionsExtensions

Adds Orsak's effect endpoints to OpenAPI documents.

Type something to start searching.