Builder
class Builder(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>) : JsonSchemaInference(source)
Builder for constructing a Response definition.
Properties
Link copied to clipboard
Content types and schemas for this response.
Link copied to clipboard
Human-readable description of the response.
Link copied to clipboard
Specification-extensions for this response (keys must start with x-).
Link copied to clipboard
Convenience property to add default content with a schema.
Functions
Link copied to clipboard
Builds a JsonSchema for the given type.
Link copied to clipboard
Provide a media type definition for the response body.
Link copied to clipboard
Defines response header parameters.
Link copied to clipboard
Adds a media type definition for the response body using a ContentType receiver.
Link copied to clipboard
Generates a JSON Schema representation for the given type T.
Link copied to clipboard
Adds a link that can be followed from this response.