openapi-generator
openapi-generator copied to clipboard
[REQ] Please add schema name to log message that tell me which the problem is.
Is your feature request related to a problem? Please describe.
When I generated python file with OpenAPI Generator, the following warning occurred. But I can't find which schema object is problem from the following log.
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: python (client)
[main] INFO o.o.codegen.DefaultGenerator - Generator 'python' is considered stable.
[main] INFO o.o.c.languages.PythonClientCodegen - Environment variable PYTHON_POST_PROCESS_FILE not defined so the Python code may not be properly formatted. To define it, try 'export PYTHON_POST_PROCESS_FILE="/usr/local/bin/yapf -i"' (Linux/Mac)
[main] INFO o.o.c.languages.PythonClientCodegen - NOTE: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
[main] WARN o.o.codegen.DefaultCodegen - Unknown type found in the schema: object
[main] WARN o.o.codegen.DefaultCodegen - Unknown type found in the schema: object
[main] WARN o.o.codegen.DefaultCodegen - Unknown type found in the schema: object
[main] WARN o.o.codegen.DefaultCodegen - Unknown type found in the schema: object
[main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Error. To fully utilize allOf, please use $ref instead of inline schema definition
[main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Error. To fully utilize allOf, please use $ref instead of inline schema definition
[main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Error. To fully utilize allOf, please use $ref instead of inline schema definition
[main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Error. To fully utilize allOf, please use $ref instead of inline schema definition
[main] WARN o.o.codegen.DefaultCodegen - allOf with multiple schemas defined. Using only the first one: Error. To fully utilize allOf, please use $ref instead of inline schema definition
Describe the solution you'd like
Please add schema name to log message that tell me which the problem is.
Additional context
- OpenAPI Generator v4.0.0
I just ran into the same problem. It's basically impossible to debug this problem.
Please how did you get around this?
If there are multiple places this could be coming from the comment out lines until the warning message no longer appears. Then start uncommenting until the message reappears.