Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Converting to OpenAPI JSON

OpenAPI specification (aka Swagger 3) has been released and the CXF team has started working on the new feature which will produce OpenAPI JSON with the help of the new core and jaxrs libraries being currently developed by the Swagger community.

...

Note, OpenAPI JSON allows referring to its new "components/requestBodies" section from the multiple "requestBody" elements (which can be found under the specific path/http verb sub-sections). By default the filter will instead inline the the "requestBody" definitions inside of "requestBody" elements, but one can experiment with referring to the "components/requestBodies" by configuring the filter to create the request bodies.   

The conversion filter is available starting from CXF 3.1.15 and 3.2.2

Samples

CXF's distribution contains the following samples.

...