Wow
Toggle table of contents
9.9.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Wow
wow-openapi
/
me.ahoo.wow.openapi.context
/
OpenAPIComponentContext
Open
APIComponent
Context
interface
OpenAPIComponentContext
:
InlineSchemaCapable
Members
Types
Companion
Link copied to clipboard
object
Companion
Properties
headers
Link copied to clipboard
abstract
val
headers
:
Map
<
String
,
Header
>
parameters
Link copied to clipboard
abstract
val
parameters
:
Map
<
String
,
Parameter
>
request
Bodies
Link copied to clipboard
abstract
val
requestBodies
:
Map
<
String
,
RequestBody
>
responses
Link copied to clipboard
abstract
val
responses
:
Map
<
String
,
ApiResponse
>
schemas
Link copied to clipboard
abstract
val
schemas
:
Map
<
String
,
Schema
<
*
>
>
Functions
array
Schema
Link copied to clipboard
abstract
fun
arraySchema
(
mainTargetType
:
Type
,
vararg
typeParameters
:
Type
)
:
Schema
<
*
>
component
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.
finish
Link copied to clipboard
abstract
fun
finish
(
)
header
Link copied to clipboard
abstract
fun
header
(
key
:
String
=
""
,
builder
:
Header
.
(
)
->
Unit
)
:
Header
parameter
Link copied to clipboard
abstract
fun
parameter
(
key
:
String
=
""
,
builder
:
Parameter
.
(
)
->
Unit
)
:
Parameter
request
Body
Link copied to clipboard
abstract
fun
requestBody
(
key
:
String
=
""
,
builder
:
RequestBodyBuilder
.
(
)
->
Unit
)
:
RequestBody
resolve
Type
Link copied to clipboard
abstract
fun
resolveType
(
mainTargetType
:
Type
,
vararg
typeParameters
:
Type
)
:
ResolvedType
response
Link copied to clipboard
abstract
fun
response
(
key
:
String
=
""
,
builder
:
ApiResponseBuilder
.
(
)
->
Unit
)
:
ApiResponse
schema
Link copied to clipboard
abstract
fun
schema
(
mainTargetType
:
Type
,
vararg
typeParameters
:
Type
)
:
Schema
<
*
>