Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when generating OpenAPI client #6711

Closed
Ajai-Suvendran opened this issue Jun 17, 2024 · 2 comments · Fixed by ballerina-platform/openapi-tools#1751
Closed

NPE when generating OpenAPI client #6711

Ajai-Suvendran opened this issue Jun 17, 2024 · 2 comments · Fixed by ballerina-platform/openapi-tools#1751
Assignees
Labels
Milestone

Comments

@Ajai-Suvendran
Copy link

Ajai-Suvendran commented Jun 17, 2024

Description

The OpenAPI tool did not complete generating http client for the given OpenAPI specification.

Screenshot 2024-06-17 154318

OpenAPI specification
API_MATERIAL_STOCK_SRV.json

Steps to Reproduce

No response

Affected Version(s)

Ballerina 2201.9.0 (Swan Lake Update 9)

OS, DB, other environment details and versions

No response

Related area

-> OpenAPI tool

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@niveathika niveathika changed the title [Bug]: Issue with the OpenAPI tool NPE when generating OpenAPI client Jun 17, 2024
@Shadow-Devil
Copy link

The exception is thrown because the operationId is not set for the different operations.
Therefore, in here the .getOperationId() returns null.
Normally this should be validated if clientResourceMode is set to false from here to here (negated) to here (validated).

Copy link

github-actions bot commented Aug 8, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@TharmiganK TharmiganK added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Aug 8, 2024
@TharmiganK TharmiganK added this to the 2201.10.0 milestone Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Status: Done
5 participants