Route and parameter ownership
Source-level parameter declarations are normalized during compilation. Where OpenAPI supplies both path-item and operation parameters, the operation-level declaration overrides the same location and name. Header names compare case-insensitively, and local references are resolved at compile time. Simile compiles parameter schemas into the same portable schema catalog used by request bodies. The server validates required presence, scalar types, arrays, objects, patterns, bounds, and other supported schema rules for:- template path parameters;
- repeated and delimited query parameters;
- case-insensitive headers; and
- parsed cookie pairs.
Location header directly from the compiled contract.
Authentication boundary
Route matching resolves the operation before authentication runs. The adapter then evaluates the operation’s OpenAPI security alternatives against local HCL principal contracts and profiles. Accepted identities continue to parameter and body validation; missing credentials return401, while known active
identities without required grants return 403.
See Authentication emulation for schemes, principals, grants, and
lifecycle states.
Helpful failures
A parameter failure identifies the location, public parameter name, rule, and message. If the provider maps the publicmalformed_request cause, Simile renders that provider error; otherwise it
returns a structured diagnostic envelope. Request-body failures follow the same provider-first
policy.
Literal routes win over templates. Unknown paths return 404, a known path with the wrong method
returns 405, and both are decided before operation execution. Bodies are limited to 8 MiB.
Mutual TLS remains an explicit adapter boundary because the listener has no verified client
certificate input. See Capabilities and limits.