File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,13 +34,29 @@ Once installed, you can use `penify-oapi-codegen` from the command line to gener
3434
3535### Generate Code Examples
3636
37+ #### For all supported languages
38+
39+ It will generate OpenAPI schema for all possible language and variant.
40+
41+ ``` bash
42+ penify-oapi-codegen -i path/to/your/openapi/schema.json -o path/to/output/schema_with_code.json
43+ ```
44+
45+ #### For Specific Language and Variant
46+
3747``` bash
3848penify-oapi-codegen -i path/to/your/openapi/schema.json -l language -v variant -o path/to/output/schema_with_code.json
3949```
4050
51+ #### Get all supported languages
52+
53+ ``` bash
54+ penify-oapi-codegen -s
55+ ```
56+
4157### Options
4258
43- - ` -s , --source <path> ` : Path to the OpenAPI schema file (required).
59+ - ` -i , --input <path> ` : Path to the OpenAPI schema file (required).
4460- ` -l, --language <language> ` : Programming language for the code example (optional).
4561- ` -v, --variant <variant> ` : Variant of the code generator for the specified language (optional).
4662- ` -o, --output <path> ` : Path to the output code example file (optional).
You can’t perform that action at this time.
0 commit comments