ahrefs / ppx_deriving_jsonschema

Generate json schema from ocaml type
MIT License
14 stars 0 forks source link

support references to types that are option #7

Open Khady opened 1 month ago

Khady commented 1 month ago

We support not putting a type in required when it is an option, for example

type t = { f: string option }

But if the type is an alias for a type which is an option, we don't detect it

type opt = string option
type t = { f: opt }

should we have an attribute for such cases?