Skip to content

Commit a2f8a92

Browse files
committed
chore: Update penify-oapi-codegen package name, improve command-line argument handling, and generate sample code for all languages and variants in OpenAPIHelper
1 parent 168d4b9 commit a2f8a92

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3848
penify-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).

0 commit comments

Comments
 (0)