Request bodies
The runtime selects a decoder from the requestContent-Type and the media types declared for the
operation.
Form transports begin with text values. Simile consults each declared property schema before
coercing booleans or numbers, so
quantity=2 can become the integer 2 while a string such as
postal_code=00123 keeps its leading zeros. Repeated names remain arrays and receive the same
schema-guided treatment as a unit.
One operation can publish more than one representation:
simile run chooses a declared representation when it synthesizes a missing request. A real HTTP
request supplies Content-Type; an absent or undeclared type produces a helpful protocol error.
Parameters
OpenAPI parameter style controls how one schema value is represented outside the body. Simile supports the styles that OpenAPI assigns to ordinary HTTP locations:
Examples for the same logical value:
Failure behavior
The runtime validates each decoded parameter against the same schema engine used for bodies. A failure reports its public name, location, message, and nested schema issues. Provider-authored protocol errors can map the public failure while the structured Simile diagnostic remains the fallback.simile audit reports an error when a compiled parameter style has no executable decoder. This
keeps wire support explicit and prevents a plausible but incorrect approximation.
Continue with HTTP contract surface, Request validation,
or Run an operation.