You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Ballerina type generated for a schema which represents an array of multiple member types does not have the proper parentheses to represents the union type.
Steps to reproduce:
Use the following OpenAPI spec to generate the client/service:
The generated return type has the following format: string|int|record {string name?; int age?;}[]|error but it should be (string|int|record {string name?; int age?;})[]|error.
Affected Versions:
Ballerina SwanLake Update 9 (2201.9.x)
The text was updated successfully, but these errors were encountered:
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.
Description:
The Ballerina type generated for a schema which represents an array of multiple member types does not have the proper parentheses to represents the union type.
Steps to reproduce:
Use the following OpenAPI spec to generate the client/service:
The generated return type has the following format:
string|int|record {string name?; int age?;}[]|error
but it should be(string|int|record {string name?; int age?;})[]|error
.Affected Versions:
Ballerina SwanLake Update 9 (2201.9.x)
The text was updated successfully, but these errors were encountered: