Instance Methodswift-openapi-runtime 1.6.0OpenAPIRuntime
hash(into:)
Hashes the OpenAPIValueContainer
instance into a hasher.
func hash(into hasher: inout Hasher)
Parameters
- hasher
The hasher used to compute the hash value.
Other members in extension
Type members
init(booleanLiteral: BooleanLiteralType
) Creates an
OpenAPIValueContainer
with the provided boolean value.init(floatLiteral: Double
) Creates an
OpenAPIValueContainer
with the provided floating-point value.init(from: any Decoder
) throws Initializes an
OpenAPIValueContainer
by decoding it from a decoder.init(integerLiteral: Int
) Creates an
OpenAPIValueContainer
with the provided integer value.init(nilLiteral: ()
) Creates an
OpenAPIValueContainer
with anil
value.init(stringLiteral: String
) Creates an
OpenAPIValueContainer
with the provided string value.init(unvalidatedValue: (any Sendable)?
) throws Creates a new container with the given unvalidated value.
static func == (lhs: OpenAPIValueContainer, rhs: OpenAPIValueContainer
) -> Bool Compares two
OpenAPIValueContainer
instances for equality.
Instance members
var value: (any Sendable)?
The underlying dynamic value.
func encode(to: any Encoder
) throws Encodes the
OpenAPIValueContainer
and writes it to an encoder.