package jsonschema2atd

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

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.1.tar.gz
md5=dcdbf453fbfab9a1fe41966b69823c3b
sha512=b6ab5b78fee8fb41a7da867bcd11b54d92228e4798572aa7714aa59fc983a79998ddb176153755b6ca772ae5b38efef2e2f8a76459d165298455688bf55c6f83

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.