When customizing templates (e.g., api.mustache), you can use debug flags during the java execution to inspect the data being passed to the template engine. This helps you identify which object properties are available for use in your templates.
Debug Flags
Pass these flags to the java command to inspect different parts of the generation process:
-DdebugSwagger: Prints the OpenAPI Specification as interpreted by the codegen.-DdebugModels: Prints models passed to the template engine.-DdebugOperations: Prints operations passed to the template engine.-DdebugSupportingFiles: Prints additional data passed to the template engine.
Example: Debugging Operations
To see the data available for operations (useful when editing api.mustache), run:
java -DdebugOperations -cp /path/to/swagger-codegen-cli.jar:/path/to/your.jar io.swagger.codegen.v3.cli.SwaggerCodegen -l AsanaPythonClientCodegen -i /path/to/swagger.yaml -o ./test
java -DdebugOperations -cp /path/to/swagger-codegen-cli.jar:/path/to/your.jar io.swagger.codegen.v3.cli.SwaggerCodegen -l AsanaPythonClientCodegen -i /path/to/swagger.yaml -o ./test