Module Values.ModelSource

Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

Sourcetype nonrec t = {
  1. contentType : StringWithLengthBetween1And256.t option;
    (*

    The content-type for the model, for example, "application/json".

    *)
  2. description : StringWithLengthBetween0And1024.t option;
    (*

    The description of the model.

    *)
  3. modelId : Id.t option;
    (*

    The model identifier.

    *)
  4. name : StringWithLengthBetween1And128.t option;
    (*

    The name of the model. Must be alphanumeric.

    *)
  5. schema : StringWithLengthBetween0And32K.t option;
    (*

    The schema for the model. For application/json models, this should be JSON schema draft 4 model.

    *)
}
Sourceval make : ?contentType:??? -> ?description:??? -> ?modelId:??? -> ?name:??? -> ?schema:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of StringWithLengthBetween1And256.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t