openapi/init
Source
Usage
bash
npm exec saf-workflow kickoff openapi/init <name>To run this workflow automatically, tell the agent to:
- Navigate to the target package
- Run this command
- Follow the instructions until done
Checklist
When run, the workflow will:
- Upsert 9 templates.
- Upsert 14 templates.
- Upsert 15 templates.
- Add @saflib/saflib-dossier-spec dependency to parent spec
- Change working directory to dossier/spec
- Run
npm install - Run
npm run generate
Help Docs
bash
Usage: npm exec saf-workflow kickoff openapi/init <name>
Scaffold an offshoot OpenAPI package (and sibling test factories package) and
weave path $refs into the parent spec
Arguments:
name Kebab-case offshoot name (e.g. 'dossier'). Creates {product}/{name}/spec and weaves path $refs into the parent openapi.yaml.
Example: "dossier"