package ppx_deriving_jsonschema

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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 jsonschema_td_allow_extra_fields : (Ppxlib__.Import.type_declaration, unit -> unit) Ppxlib.Attribute.t
Sourceval jsonschema_cd_allow_extra_fields : (Ppxlib__.Import.constructor_declaration, unit -> unit) 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 -> bool -> Ppxlib_ast.Ast.expression
Sourceval derive_jsonschema : ctxt:Ppxlib.Expansion_context.Deriver.t -> ('a * Ppxlib__.Import.type_declaration list) -> bool -> bool -> Ppxlib_ast.Ast.structure
Sourceval generator : unit -> (Ppxlib_ast.Ast.structure, 'a * Ppxlib__.Import.type_declaration list) Ppxlib__Deriving.Generator.t
OCaml

Innovation. Community. Security.