openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ] Please add schema name to log message that tell me which the problem is.

Open yuji38kwmt opened this issue 7 years ago • 3 comments

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

yuji38kwmt avatar Jul 14 '19 02:07 yuji38kwmt

I just ran into the same problem. It's basically impossible to debug this problem.

jvs64893 avatar Feb 13 '20 14:02 jvs64893

Please how did you get around this?

donpaul120 avatar Apr 13 '20 11:04 donpaul120

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.

mgrand-softvision avatar May 23 '21 19:05 mgrand-softvision