Skip to main content

Crate tsurara_sample

Crate tsurara_sample 

Source
Expand description

Sample values from the model (design.md 18.7.1): one JSON value per declaration and per operation parameter, request body and response body, for mocks in every language. The values are deterministic: they come from the definition (examples, defaults, constraints) and from JSON Pointers, never from a clock or a random source.

Published for backends outside this repository, with one version for all tsurara crates, released with the CLI and moving with semVersion. Stable: the sample functions.

Structs§

BodySample
OperationSamples
ParamSample
ResponseSample
Samples

Functions§

samples
The samples of model, with warnings where a value could not follow the definition.