package jsonschema2atd

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.2.tar.gz
md5=74831bc11604208e02d552482389a1ae
sha512=a9ef6ef9a8b0414b25a764c2f51cf6ad61730016d0822aa8303e9a519ee67d27cd28d89575cb28dfdb13dd4c98c5373182f82835030d6822bec021834dbb3675

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.