OpenAPIComponentContext

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val headers: Map<String, Header>
Link copied to clipboard
abstract val parameters: Map<String, Parameter>
Link copied to clipboard
abstract val requestBodies: Map<String, RequestBody>
Link copied to clipboard
abstract val responses: Map<String, ApiResponse>
Link copied to clipboard
abstract val schemas: Map<String, Schema<*>>

Functions

Link copied to clipboard
abstract fun arraySchema(mainTargetType: Type, vararg typeParameters: Type): Schema<*>
Link copied to clipboard
abstract fun componentSchema(key: String, schema: Schema<*>): Schema<*>

Registers schema as the schema component key and returns a $ref to it.

Link copied to clipboard
abstract fun finish()
Link copied to clipboard
abstract fun header(key: String = "", builder: Header.() -> Unit): Header
Link copied to clipboard
abstract fun parameter(key: String = "", builder: Parameter.() -> Unit): Parameter
Link copied to clipboard
abstract fun requestBody(key: String = "", builder: RequestBodyBuilder.() -> Unit): RequestBody
Link copied to clipboard
abstract fun resolveType(mainTargetType: Type, vararg typeParameters: Type): ResolvedType
Link copied to clipboard
abstract fun response(key: String = "", builder: ApiResponseBuilder.() -> Unit): ApiResponse
Link copied to clipboard
abstract fun schema(mainTargetType: Type, vararg typeParameters: Type): Schema<*>