Open jzabroski opened 1 year ago
I believe my immediate bad error message is due to the following rest parameter:
{
"name" : "_knitColumnMeta",
"in" : "query",
"description" : "Optional. maximum number of results that the request should return.",
"required" : false,
"type" : "integer",
"enum" : [ "true", "false" ],
"x-is-special-param" : true,
"x-@CLASS" : "java.lang.String"
}
I am guessing that the parser dislikes the combination of "type" : "integer"
and "enum" : [ "true", "false" ]
right, if you remove "enum" : [ "true", "false" ]
, that should workaround the problem before the vendor fixes the spec.
(also worth mentioning that csharp-netcore client generators support other HTTP libraries such as httpclient, generichost, unityWebRequest
(e.g. via the --library option in the CLI)
Is your feature request related to a problem? Please describe.
I'm trying to compare .NET's NSwag code generator for C# to OpenAPI-Generator and evaluate which one is better. OpenAPI's native support for RestSharp on the surface would seem like a clear winner.
When I run openapi-generator, I get an opaque error message that does not provide context.
I can't find "SwaggerConverter" in this project's code. I think this library is internally using this third party API code: https://github.com/swagger-api/swagger-parser/blob/e5a23e8813df1462b9f90f9e535e8da80088bfb1/modules/swagger-parser-v2-converter/src/main/java/io/swagger/v3/parser/converter/SwaggerConverter.java#L1034 - it would be helpful to know if this is the case.
The error message is:
PS D:\Users\John.Zabroski\source\openapitools> java -jar .\openapi-generator-cli.jar generate -g csharp -i bundleGroupService.json -o BundleGroupClient.cs -v [main] INFO o.o.c.config.CodegenConfigurator - VERBOSE MODE: ON. Additional debug options are injected
Describe the solution you'd like
Pointers in how to skip support and debug this problem myself.
Describe alternatives you've considered
Additional context