package jsonschema2atd

  1. Overview
  2. Docs
Generate ATD types out of JSON Schema and OpenAPI document

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.3.tar.gz
md5=8fd01d574c534f8f113f8c434e17f731
sha512=5ff33bc638307d41e8e41c3de44470bfb66b7c4ca3636aa58869accf37f5b2c732928e7d0bfd5ec63492f8463863d901e3a0b979a2a105acc7392ec0aa51a856

doc/src/jsonschema2atd.runtime/adapter.ml.html

Source file adapter.ml

1
2
3
4
5
6
7
8
module One_of = struct
  let normalize (* TODO: should raise an error? *) x = x

  let restore = function
    (* Unbox variant value *)
    | `List [ `String _; value ] -> value
    | x -> x
end
OCaml

Innovation. Community. Security.