Package-level declarations
Types
A default builder for anything that needs to implement BodyDsl.
DSL for body-like objects, i.e. objects that contain a "content" property.
A content type.
Builder for ResponseDsl
DSL interface for response headers
Builder object for the info object.
DSL for the info object.
A builder for MediaTypeDsl.
DSL for media type objects(https://spec.openapis.org/oas/v3.1.0#media-type-object
Represents multiple content types. This is useful for functions that can be applied to multiple content types at a time (mostly for the sake of concision).
This interface is passed to most of the builder classes and provides utilities that need to be present through the "DSL tree".
A version of the OpenAPI standard. This only includes the x.y
part of the x.y.z
version scheme.
Builder for OperationDsl
DSL for the operation object.
Builder for ParameterDsl
DSL for https://spec.openapis.org/oas/v3.1.0#parameter-object
The kind of parameter (i.e. its location).
Builder for PathDsl
DSL for the path item object.
Builder for PathsDsl.
DSL for the paths object.
Interface that contains standard content types.
Builder for the request body DSL
DSL for the request body object.
Builder for Response objects, implementing the ResponseDsl.
DSL for https://spec.openapis.org/oas/v3.1.0#response-object.
Builder for the RootDsl.
Builder for the security scheme DSL.
DSL for the security scheme object.
DSL for the server object.
An implementation of OpenApiDslContext that keeps context information for Swagger Core.
DSL for the tag object.
Functions
Set the schema to be of type T
.
Set the schema to be of type T
, with the given object set as the example.
Set the schema to be of type ktype, with the given object set as the example.
Dumps this OpenAPI object to a JSON string.
Converts this OpenAPI object to a version 3.1 OpenAPI object.
Dumps this OpenAPI object to a prettified YAML string.
Properties
Sets the type of this security scheme to API key.
Sets the type of this security scheme to HTTP.
Sets the location of this security scheme to be in a cookie.
Sets the location of this security scheme to be in a header.
Sets the location of this security scheme to be in a query parameter.
Sets the type of this security scheme to Mutual TLS.
Sets the type of this security scheme to OAuth 2.
Sets the type of this security scheme to OpenID Connect.