Forum Discussion

antoniocov's avatar
antoniocov
Frequent Visitor
6 years ago

Append throws Exception on endpoint definition

Hi,
I have a springboot project and a swagger.yaml file to generate the java code through openapi maven plugin. 
I would like to append "throws Exception" on a method of generated api java interface. I read documentation but I didn't find anything. Is there a way to specify on swagger.yaml file which excpetion should be added to the endpoint?

 

Thanks!

1 Reply