... | ... | @@ -13,9 +13,9 @@ |
|
|
|
|
|
To obtain a list of variables (tags) available in the mustache template. Please use `debugOperations` and `debugModels`. Heres is an example for variables in the model templates:
|
|
|
```
|
|
|
java -DdebugModels -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-g csharp \
|
|
|
-g csharp --global-property debugModels=true
|
|
|
```
|
|
|
and here is part of the output:
|
|
|
```
|
... | ... | @@ -46,9 +46,9 @@ and here is part of the output: |
|
|
|
|
|
For operation (resource) templates, please use `debugOperations` instead:
|
|
|
```
|
|
|
java -DdebugOperations -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i http://petstore.swagger.io/v2/swagger.json \
|
|
|
-g csharp \
|
|
|
-g csharp --global-property debugOperations=true
|
|
|
```
|
|
|
Here is part of the result
|
|
|
```
|
... | ... | |