Builder

class Builder(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>) : JsonSchemaInference(source)

Builder for OpenAPI Operation object

Report a problem

Constructors

Link copied to clipboard
constructor(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>)

Properties

Link copied to clipboard

Callback definitions for this operation, if any.

Link copied to clipboard

Marks the operation as deprecated when true.

Link copied to clipboard

A verbose explanation of the operation behavior.

Link copied to clipboard

Specification-extensions for this operation (keys must start with x-).

Link copied to clipboard

A URL to additional external documentation for this operation.

Link copied to clipboard

Unique string used to identify the operation.

Link copied to clipboard

Collected parameter definitions for this operation.

Link copied to clipboard

Request body definition for this operation, if any.

Link copied to clipboard

Collected response definitions keyed by HTTP status code.

Link copied to clipboard

Declared security requirements for this operation.

Link copied to clipboard

Collected server definitions specific to this operation.

Link copied to clipboard

A short summary of what the operation does.

Link copied to clipboard

Collected tags added to this operation.

Functions

Link copied to clipboard
open override fun buildSchema(type: KType): JsonSchema

Builds a JsonSchema for the given type.

Link copied to clipboard
fun callback(key: String, value: Callback)

Adds a callback definition for this operation using the Callback DSL.

Link copied to clipboard
inline fun <T : Any> extension(name: String, value: T)

Adds a extension to this operation.

Link copied to clipboard

Generates a JSON Schema representation for the given type T.

Link copied to clipboard
fun parameters(configure: Parameters.Builder.() -> Unit)

Adds operation parameters using the Parameters DSL.

Link copied to clipboard
fun requestBody(configure: RequestBody.Builder.() -> Unit)

Defines a request body for this operation using the RequestBody DSL.

Link copied to clipboard
fun responses(configure: Responses.Builder.() -> Unit)

Adds possible responses returned by this operation using the Responses DSL.

Link copied to clipboard
fun security(configure: Security.Builder.() -> Unit)

Declares security requirements for this operation using the Security DSL.

Link copied to clipboard
fun servers(configure: Servers.Builder.() -> Unit)

Adds server definitions specific to this operation using the Servers DSL.

Link copied to clipboard
fun tag(tag: String)

Adds a tag to this operation.