encode(to:)

    Encodes the OpenAPIValueContainer into a format that can be stored or transmitted via the given encoder.

    OpenAPIValue.swift:370
    func encode(to encoder: any Encoder) throws

    Parameters

    encoder

    The encoder used to perform the encoding.

    Throws

    An error if the encoding process encounters an issue or if the data does not match the expected format.

    Other members in extension

    Type members

    Instance members