OpenApiDslContext

This interface is passed to most of the builder classes and provides utilities that need to be present through the "DSL tree".

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract fun persistTo(openApi: OpenAPI)

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