Skip to content

Commit 731c9e1

Browse files
committed
Update README.md
1 parent 9390232 commit 731c9e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ generate-service-interface --output <output_directory> --framework <framework_na
2323
- `--output`, `-o`: Specify the output directory. Default: `dist`
2424
- `--framework`, `-f`: (Optional) Specify the target framework. Options: `next`
2525
- `--schemas`, `-s`: (Optional) Specify the path for predefined zod schemas. Multiple paths can be provided, separated by commas.
26+
- `--definer`: (Optional) Name of the function that was exported from the [`Next OpenAPI Route Handler`](https://www.npmjs.com/package/@omer-x/next-openapi-route-handler)
2627

2728
## Example
2829

2930
```bash
3031
generate-service-interface -o dist -f next -s src/models
3132
generate-service-interface -o dist -f next -s src/models/user,src/models/message
33+
generate-service-interface -f next --definer createRoute
3234
```
3335

3436
## Contributing

0 commit comments

Comments
 (0)