I am getting this Bad Sad error. Same works with Ballerina 2201.4.1. For now, i will generating using that Bal version.
reported Issue: https://github.com/ballerina-platform/openapi-tools/issues/1357
Service code : https://github.com/wso2-enterprise/choreo-marketplace/blob/main/marketplaceService.bal
~/ā¦/markertplace-openapi/to-share/latest|$ bal openapi -i /Users/hasithah/work/choreo-marketplace/marketplaceService.bal
ballerina: Oh no, something really went wrong. Bad. Sad.
We appreciate it if you can report the code that broke Ballerina in
https://github.com/ballerina-platform/ballerina-lang/issues with the
log you get below and your sample code.
We thank you for helping make us better.
[2023-05-17 13:52:56,809] SEVERE {b7a.log.crash} - null
java.lang.NullPointerException
at io.ballerina.openapi.converter.service.OpenAPIResponseMapper.lambda$addResponse$9(OpenAPIResponseMapper.java:774)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at io.ballerina.openapi.converter.service.OpenAPIResponseMapper.lambda$addResponse$10(OpenAPIResponseMapper.java:768)
at java.base/java.util.Optional.ifPresent(Optional.java:183)
...