package ppx_deriving_jsonschema

  1. Overview
  2. Docs
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_jsonschemaSource

Sourcetype config = {
  1. 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.

    *)
  2. polymorphic_variant_tuple : bool;
    (*

    Preserve the implicit tuple in a polymorphic variant. This option breaks compatibility with yojson derivers.

    *)
}
Sourceval deriver_name : string
Sourceval jsonschema_key : (Ppxlib__.Import.label_declaration, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Sourceval jsonschema_ref : (Ppxlib__.Import.label_declaration, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Sourceval jsonschema_variant_name : (Ppxlib__.Import.constructor_declaration, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Sourceval jsonschema_polymorphic_variant_name : (Ppxlib__.Import.row_field, string Ppxlib__.Loc.t) Ppxlib.Attribute.t
Sourceval attributes : Ppxlib.Attribute.packed list
Sourceval args : unit -> (bool -> bool -> 'a, 'a) Ppxlib.Deriving.Args.t
Sourceval deps : 'a list
Sourceval predefined_types : string list
Sourceval is_predefined_type : string -> bool
Sourcemodule Schema : sig ... end
Sourceval variant_as_string : loc:Ppxlib.location -> [< `Inherit of Ppxlib_ast.Ast.expression | `Tag of string * 'a ] list -> Ppxlib_ast.Ast.expression
Sourceval variant_as_array : loc:Ppxlib.location -> [< `Inherit of Ppxlib_ast.Ast.expression | `Tag of string * Ppxlib__.Import.expression list ] list -> Ppxlib_ast.Ast.expression
Sourceval variant : loc:Ppxlib.location -> config:config -> [< `Inherit of Ppxlib_ast.Ast.expression | `Tag of string * Ppxlib__.Import.expression list ] list -> Ppxlib_ast.Ast.expression
Sourceval value_name_pattern : loc:Ppxlib__.Location.t -> string -> Ppxlib__.Import.pattern
Sourceval create_value : loc:Ppxlib__.Location.t -> string -> Ppxlib_ast.Ast.expression -> Ppxlib_ast.Ast.structure_item
Sourceval is_optional_type : Ppxlib_ast.Ast.core_type -> bool
Sourceval type_of_core : config:config -> Ppxlib.core_type -> Ppxlib_ast.Ast.expression
Sourceval object_ : loc:Ppxlib__.Location.t -> config:config -> Ppxlib.label_declaration list -> Ppxlib_ast.Ast.expression
Sourceval derive_jsonschema : ctxt:Ppxlib.Expansion_context.Deriver.t -> ('a * Ppxlib.type_declaration list) -> bool -> bool -> Ppxlib_ast.Ast.structure
Sourceval generator : unit -> (Ppxlib_ast.Ast.structure, 'a * Ppxlib.type_declaration list) Ppxlib__Deriving.Generator.t
OCaml

Innovation. Community. Security.