x-simile-constraints for relationships inside one payload and
x-simile-from-request for public relationships between an operation’s request and response.
For example, OpenAPI can require created_at and updated_at to be RFC 3339 timestamps. The Simile
extension can additionally require them to appear in chronological order:
- proof — reject an incoming request or generated response that violates the relationship;
- construction — establish the relationship while synthesizing a request or response.
Extension map
Use ordinary OpenAPI keywords for field-local rules such as
required, enum, minimum,
maxLength, oneOf, and format. Use x-simile-constraints only when multiple values must be
understood together.x-simile-constraints.
For the design model and proof semantics, read Payload soundness.
For approximate generation when a provider has not published a relationship, read
Generation heuristics.