Std.App.OpenApi
21 public declarations
- answer
Int -> Str -> Option[Std.App.OpenApi.Schema] -> Std.App.OpenApi.AnswerA response.
- Answer
One possible response. A 4xx or 5xx answer with no body is described as
- Describing
Building a document reads top to bottom:
- document
Str -> Str -> Std.App.OpenApi.DocumentA document with no operations.
- Document
A whole API description.
- Document
Std.App.Config.SourceA whole API description.
- field
Str -> Std.App.OpenApi.Schema -> Std.App.OpenApi.PropertyA required property.
- Location
Where a parameter is read from.
- operation
Std.Http.Method -> Str -> Str -> Std.App.OpenApi.OperationAn operation whose
:namepath segments are required text parameters - Operation
One route, described.
pathuses the router's:namesegments. - optional
Str -> Std.App.OpenApi.Schema -> Std.App.OpenApi.PropertyAn optional property.
- parameter
Str -> Std.App.OpenApi.Location -> Std.App.OpenApi.Schema -> Std.App.OpenApi.ParameterA parameter; path parameters are required, others optional.
- Parameter
A parameter of an operation.
- PROBLEM_SCHEMA
StrThe name the problem-body schema is published under.
- problems
&Std.App.OpenApi.Document -> Array[Str]What is inconsistent in a document: repeated operation ids, a
Named - Property
A member of a
Recordschema. - route
&Std.App.OpenApi.Document -> Str -> Std.Http.Server.Route.RouteA route serving the document as JSON at
path. - Schema
The shape of a value in a request or response.
- SPEC_VERSION
StrThe document version this module writes.
- toJson
&Std.App.OpenApi.Document -> Std.Json.JsonThe document as an OpenAPI 3.1 object.
- undocumented
&Std.App.OpenApi.Document -> &Std.Http.Server.Route.Router -> (Array[Str], Array[Str])Routes the router serves that the document does not describe, and
