Parameter
data class Parameter(val name: String, val in: ParameterType? = null, val description: String? = null, val required: Boolean = false, val deprecated: Boolean = false, val schema: ReferenceOr<JsonSchema>? = null, val content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, val style: String? = null, val explode: Boolean? = null, val allowReserved: Boolean? = null, val allowEmptyValue: Boolean? = null, val example: GenericElement? = null, val examples: Map<String, ReferenceOr<ExampleObject>>? = null, val extensions: ExtensionProperties? = null) : Extensible(source)
Describes a single operation parameter (path, query, header, or cookie).
Constructors
Link copied to clipboard
constructor(name: String, in: ParameterType? = null, description: String? = null, required: Boolean = false, deprecated: Boolean = false, schema: ReferenceOr<JsonSchema>? = null, content: Map<@Serializable(with = ContentTypeSerializer::class) ContentType, MediaType>? = null, style: String? = null, explode: Boolean? = null, allowReserved: Boolean? = null, allowEmptyValue: Boolean? = null, example: GenericElement? = null, examples: Map<String, ReferenceOr<ExampleObject>>? = null, extensions: ExtensionProperties? = null)
Types
Link copied to clipboard
class Builder(schemaInference: JsonSchemaInference, defaultContentTypes: List<ContentType>) : JsonSchemaInference
Builder for constructing a Parameter instance.
Properties
Link copied to clipboard
Allows sending a parameter with an empty value (deprecated in OpenAPI 3.1).
Link copied to clipboard
Determines if reserved characters :/?#[]@!$&'()*+,;= are allowed without percent-encoding.
Link copied to clipboard
Link copied to clipboard
Marks the parameter as deprecated if true.
Link copied to clipboard
A brief description of the parameter.
Link copied to clipboard
Example of the parameter's potential value.
Link copied to clipboard
Map of examples for the parameter.
Link copied to clipboard
Specification-extensions for this parameter (keys must start with x-).
Link copied to clipboard
Link copied to clipboard
The schema defining the parameter type.