totto2727/model/serde does not have a README file

    deny_unknown

    Reject unexpected keys without changing the caller's object.

    deny_unknown_paths

    Check unknown keys at each object implied by fixed paths. Leaf decoders validate their own values.

    discriminator

    Read an internal or adjacent string discriminator.

    external

    Decode the externally tagged representation. None distinguishes a unit tag from an explicit null payload.

    field

    Resolve a field and its aliases, rejecting ambiguous input.

    flattened_remainder

    fn flattened_remainder(fields : Map[String,
    Json
    ], reserved : Array[String]) ->
    Json

    Copy the keys that are not claimed by the enclosing record.

    invalid

    Report a wire-format error at the supplied JSON path.

    missing_field

    Report the key at the first absent path segment.

    object

    Codecs operate on dynamic JSON values because this package implements the serialization boundary itself.

    payload

    Require a variant's content, preserving the difference between absent and null.

    read_path

    Read fixed object keys and return the value, its location, and the first missing key or leaf key.

    unit

    Require the string form of an external unit variant or an absent adjacent content field.

    untagged

    Try candidates in declaration order. If none match, report each candidate's location and reason.

    write_flattened

    fn write_flattened(fields : Map[String,
    Json
    ], value :
    Json
    , reserved : Array[String]) -> Unit

    Expand an object into its parent without overwriting a parent key.

    write_path

    fn write_path(fields : Map[String,
    Json
    ], keys : Array[String], value :
    Json
    ) -> Unit

    Write a leaf into the generated object's already-validated, non-overlapping paths.

    Source Files