package ppx_deriving_jsonschema
Jsonschema generator for ppx_deriving
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_deriving_jsonschema-0.0.3.tbz
sha256=d517fc97fabe39ef8eea49dcc91b9abec03e86fdcb53fcf37b046aa0954e4d1a
sha512=b9785ea7c0394946d4585839da4d137c2ea15642f2588df3c3506e514c08f4e8413a59dd075730d7e55e686dc165140c5cdce90e5eb349b439953dba9a142d76
doc/ppx_deriving_jsonschema/Ppx_deriving_jsonschema/index.html
Module Ppx_deriving_jsonschema
Source
Source
type config = {
variant_as_string : bool;
(*Encode variants as string instead of string array. This option breaks compatibility with yojson derivers and doesn't support constructors with a payload.
*)polymorphic_variant_tuple : bool;
(*Preserve the implicit tuple in a polymorphic variant. This option breaks compatibility with yojson derivers.
*)
}
Source
val jsonschema_key :
(Ppxlib__.Import.label_declaration, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Source
val jsonschema_ref :
(Ppxlib__.Import.label_declaration, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Source
val jsonschema_variant_name :
(Ppxlib__.Import.constructor_declaration, string Ppxlib__.Loc.t)
Ppxlib.Attribute.t
Source
val jsonschema_polymorphic_variant_name :
(Ppxlib__.Import.row_field, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Source
val variant_as_string :
loc:Ppxlib.location ->
[< `Inherit of Ppxlib_ast.Ast.expression | `Tag of string * 'a ] list ->
Ppxlib_ast.Ast.expression
Source
val variant_as_array :
loc:Ppxlib.location ->
[< `Inherit of Ppxlib_ast.Ast.expression
| `Tag of string * Ppxlib__.Import.expression list ]
list ->
Ppxlib_ast.Ast.expression
Source
val create_value :
loc:Ppxlib__.Location.t ->
string ->
Ppxlib_ast.Ast.expression ->
Ppxlib_ast.Ast.structure_item
Source
val derive_jsonschema :
ctxt:Ppxlib.Expansion_context.Deriver.t ->
('a * Ppxlib.type_declaration list) ->
bool ->
bool ->
Ppxlib_ast.Ast.structure
Source
val generator :
unit ->
(Ppxlib_ast.Ast.structure, 'a * Ppxlib.type_declaration list)
Ppxlib__Deriving.Generator.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>