Module Avro_compiler_lib.Codegen

module Code : sig ... end

A representation of OCaml code

val gen : ?internal:bool -> Schema.t -> Code.t list

Generate code for the given schema.

  • parameter internal

    if true, will not generate open Avro. Only useful if it's done in dune, or as part of avro itself.