Module Values.MockInputSource

A JSON object that contains a mocked result or errorOutput.

Sourcetype nonrec t = {
  1. result : SensitiveData.t option;
    (*

    A JSON string containing the mocked result of the state invocation.

    *)
  2. errorOutput : MockErrorOutput.t option;
    (*

    The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an error and cause field.

    *)
  3. fieldValidationMode : MockResponseValidationMode.t option;
    (*

    Determines the level of strictness when validating mocked results against their respective API models. Values include: STRICT: All required fields must be present, and all present fields must conform to the API's schema. PRESENT: All present fields must conform to the API's schema. NONE: No validation is performed. If no value is specified, the default value is STRICT.

    *)
}
Sourceval make : ?result:??? -> ?errorOutput:??? -> ?fieldValidationMode:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of SensitiveData.t | `Structure of (string * [> `String of SensitiveError.t ]) list ]) 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