package awsm-codegen

  1. Overview
  2. Docs
type t

An abstract representation of a URL query parameter.

val sexp_of_t : t -> Sexplib0.Sexp.t

Constructors

val create : name:string -> field_name:string -> shape:string -> is_required:bool -> t

Build from fields.

  • parameter name

    The (http) name of the parameter.

  • parameter shape

    The boto shape name in the operation.

  • parameter is_required

    Is this required or optional?

val of_botodata : Botodata.operation -> shapes:(string, Botodata.shape) Core.List.Assoc.t -> t list

Build from a parsed Botodata.operation.

Accessors

val is_required : t -> bool

Helpers

val param_name : t -> string

The HTTP parameter name (the locationName).

val field_name : t -> string

The field name in the name in the ocaml record type.

Code generation

val convert : t -> Ppxlib.Parsetree.expression

Emit a converter.

If the corresponding shape is Mod, emit Mod.to_header.

OCaml

Innovation. Community. Security.