Skip to content

Commit

Permalink
readme: remove mention of melange-json in variant_as_string
Browse files Browse the repository at this point in the history
  • Loading branch information
Khady authored Oct 20, 2024
1 parent f760fce commit ccdc837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ type b = [ `B of int * string * bool ] [@@deriving jsonschema ~polymorphic_varia
}
```

A `~variant_as_string` flag is exposed to obtain a more natural representation `"anyOf": [{ "const": "..." }, ...]`. This representation does _not_ support payloads. It reproduces the representation of `melange-json` for [enumeration like variants](https://github.com/melange-community/melange-json?tab=readme-ov-file#enumeration-like-variants). For example:
A `~variant_as_string` flag is exposed to obtain a more natural representation `"anyOf": [{ "const": "..." }, ...]`. This representation does _not_ support payloads. For example:

```ocaml
type t =
Expand Down

0 comments on commit ccdc837

Please sign in to comment.