... | ... | @@ -53,19 +53,8 @@ No, we do not support **all** new features (e.g. callback, anyOf, etc) at the mo |
|
|
|
|
|
### How to debug OpenAPI Generator?
|
|
|
|
|
|
You can leverage the following debug flags when generating the libraries:
|
|
|
- [debugOpenAPI] prints the OpenAPI specification as interpreted by the codegen
|
|
|
- [debugModels] prints models passed to the template engine
|
|
|
- [debugOperations] prints operations passed to the template engine
|
|
|
- [debugSupportingFiles] prints additional data passed to the template engine
|
|
|
Please refer to https://github.com/OpenAPITools/openapi-generator/blob/master/docs/debugging.md
|
|
|
|
|
|
Here is an example using `debugModels`:
|
|
|
```
|
|
|
mvn clean package
|
|
|
java -DdebugModels=true -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate \
|
|
|
-i https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.json \
|
|
|
-g ruby -o /var/tmp/ruby/
|
|
|
```
|
|
|
### How do "tags" affect the generated code?
|
|
|
|
|
|
`tags` basically groups endpoints into the same API class file. For example, an endpoint with the "store" `tags` will be generated in the `StoreApi` class file.
|
... | ... | |