What each file contains
Simile compiles the generated service before it reports success.
The evidence stays beside the generated files. This makes each inferred operation, schema, and
binding traceable to the exchanges that produced it.
Review the draft
Start withlearning-report.json. Then inspect openapi.yaml.
The report summarizes what Simile saw and what it could infer. A small gap count does not prove that
the service is complete. It only describes the recorded session.
Check these details:
- Did Simile observe every important success and error response?
- Do fields have the right types? Are the correct fields required?
- Should any exact path segment become a path parameter?
- Does the service need lifecycle rules, asynchronous work, or faults in
behavior.hcl?
/customers/cu_123, the draft may contain
that exact path. Change it to /customers/{customer_id} when the segment identifies a resource.
Required fields also need review. A field that appeared in every recorded response may still be
optional in the provider’s full contract.
Simile adds a request-to-response binding after at least two observations show the same
relationship. Repeat an operation when its response should preserve a request ID, reference,
amount, or similar value.
Use behavior.hcl for facts that isolated HTTP exchanges cannot prove. These include lifecycle
transitions, stored state, delayed work, retries, and faults.
Run the draft
Run the generated service directly:acme. You can then run it with: