Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Swagger codegen to Java Spring generates incorrect file response entity from OpenAPI component of binary format

In the end, I switched from

<plugin>
  <groupId>io.swagger.codegen.v3</groupId>
  <artifactId>swagger-codegen-maven-plugin</artifactId>
  <version>3.0.14</version>
  ...
</plugin>

to

<plugin>
  <groupId>org.openapitools</groupId>
  <artifactId>openapi-generator-maven-plugin</artifactId>
  <version>4.2.3</version>
  ...
</plugin>

This plugin got it right and generates Resource instead of ResponseEntity

Tags:

Java

Spring

Swagger

Openapi

Swagger Codegen

Related

Why does Angular build create files with 'es5' and 'es2015' but not 'es6' (or no suffix at all)? Why is StringValues assignable to String XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway] React - How to detect when all sub-components of a parent component are visible to the user? JMS message listener invoker failed, Cause: Identifier contains invalid JMS identifier character '-': 'x-request-id' How can I debounce a setOnClickListener for 1 second using Kotlin Coroutines? TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds Count NAs between first and last occured numbers npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex Messaging: The notification permission was not granted and blocked instead How to solve this in less than O(N)? Multiprocessing in a loop, "Pool not running" error

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy