.similec artifact.
Choose one contract language
The selected source is authoritative. Do not publish one format as the contract while requiring
Simile to consult another format for missing routes, payloads, or relationships. A provider can
generate several public representations, but each representation must compile independently when
it is offered to consumers.
What the contract owns
The selected contract owns:- HTTP methods, paths, parameters, request bodies, and content types;
- success and error statuses, headers, content types, and payloads;
- operation identifiers and public grouping metadata;
- provider-authored examples;
- public cross-field soundness relationships; and
- public request-to-response construction relationships.
What HCL owns
HCL is optional and additive. It can select a response already declared by the contract, publish exact named outcomes, define opaque test scenarios, map protocol errors, describe portable dependencies, declare observable effects or asynchronous work, and resolve stored public references needed to construct a response. HCL cannot add a route, replace a request or response schema, invent a status, or weaken the contract. It targets operations by stableoperationId, so every operation referenced by HCL must
publish one.
Configure the source
ASimfile selects exactly one contract block:
url instead of path. A remotely loaded TypeScript contract must be a
self-contained declaration document because relative imports cannot be fetched as a package.
Smithy currently compiles one standalone source document. Local TypeScript entrypoints resolve
relative declaration imports recursively.