Skip to content

Conversation

@siddhuwarrier
Copy link
Contributor

@siddhuwarrier siddhuwarrier commented Oct 14, 2025

Previously, we were not returning the outputs sent by cmdline tools to stderr back to our
application, as a result of which when a command failed, we could not tell exactly what was going
wrong. Fix that so we can quickly fix underlying issues.

Old error message:

 ERROR   Error generating Python SDKexit status 1

New error message (for example):

  ERROR   Error generating Python SDKError: exit status 1.
          SDK Output: Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
           | Error count: 3, Warning count: 0
          Errors:
                -attribute paths.'/v1/msp/inventory/devices/ftds/upgrades/runs/{mspUpgradeRunUid}'(get).operationId is repeated
                -attribute paths.'/v1/msp/inventory/devices/ftds/upgrades/runs/{uid}'(delete).operationId is repeated
                -attribute paths.'/v1/msp/inventory/devices/ftds/upgrades/runs'(get).operationId is repeated

                at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:717)
                at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:744)
                at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
                at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
                at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)

…eration fails

Previously, we were not returning the outputs sent by cmdline tools to stderr back to our
application, as a result of which when a command failed, we could not tell exactly what was going
wqrong. Fix that.
@siddhuwarrier siddhuwarrier requested review from a team as code owners October 14, 2025 09:14
@siddhuwarrier siddhuwarrier requested review from hi-usui and removed request for a team October 14, 2025 09:14
@siddhuwarrier siddhuwarrier merged commit b6d9c09 into main Oct 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants