The ApiException.mustache template provides a useful exception with code and name, but unfortunately the code is private (well, that's good actually) but there is no getter to access it, so we cannot really use it...
4.3.1
https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v3.0/petstore.yaml
java -jar openapi-generator-cli-4.3.1.jar generate -i https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml -g jaxrs-resteasy -o gen
Run the generator and open gen/java/org/openapitools/api/ApiException.java
None found
Adding a basic getter should be enough
Adding a basic getter should be enough
Your suggestion sounds good. I wonder if you can submit a PR with the proposed fix so that we can review it more easily.
Adding a basic getter should be enough
Your suggestion sounds good. I wonder if you can submit a PR with the proposed fix so that we can review it more easily.
I'll try :)
Pull Request #7150 created