Result Style

The result-style configuration controls how the processor handles the return type of endpoint success and error response types if both are defined in the OpenAPI.

map:
  #result-style: success  # use the success result type, this is the default
  result-style: all # use an Object return type
  • result-style (optional).

    • success (default since 2021.5): generates endpoint methods with the success response type even if it has error responses. This assumes that errors are reported by exceptions.

    • all (default before 2021.5): generates endpoint methods with an Object return type if it has error responses.

See endpoint content types for a more detailed description.