Response
data class Response(val description: String, val headers: Map<String, ReferenceOr<Header>>? = null, val content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, val links: Map<String, ReferenceOr<Link>>? = null, val extensions: ExtensionProperties? = null) : Extensible(source)
Describes a response returned by an operation including description, headers, content, and links.
Constructors
Link copied to clipboard
constructor(description: String, headers: Map<String, ReferenceOr<Header>>? = null, content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, links: Map<String, ReferenceOr<Link>>? = null, extensions: ExtensionProperties? = null)
Types
Link copied to clipboard
class Builder(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>) : JsonSchemaInference
Builder for constructing a Response definition.
Properties
Link copied to clipboard
Map of media type to MediaType object, describing the response content.
Link copied to clipboard
Human-readable description of the response.
Link copied to clipboard
Specification-extensions for this response (keys must start with x-).