Skip to content

Suggestion: additional expressive attributes #64

Description

@anmonteiro

Melange JSON could provide 2 features that I haven’t seen in other OCaml serialization libraries:

  • [@skip_serialize_if Option.is_none]
  • { … extra: (string * Json.t) list } (type TBD) that contains a grab bag of the remaining fields we didn’t parse

These are present in Rust’s serde and allow a lot more use cases to be expressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions