SimpleDslContext

An implementation of OpenApiDslContext that keeps context information for Swagger Core.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open override fun computeAndRegisterSchema(type: KType): Schema<*>

Computes (or gets) the schema associated with the given KType. You can get a KType using the typeOf<>() function.

Link copied to clipboard
open override fun persistTo(openApi: OpenAPI)

Outputs the content of this context to the given OpenAPI object.