Skip to content

1.0.0.M12

Pre-release
Pre-release
Compare
Choose a tag to compare
@hauner hauner released this 08 Mar 08:01
· 823 commits to master since this release

improvements

  • #91, support for composed schemas using allOf, anyOf or oneOf. The processor does create the single model classes. except the combined model class for allOf.

  • use the paths operation id (if available) to create the method identifier of the path:

      paths:
        /foo:
          get:
            operationId: get-bar
            responses:
              ...
    

    will create the following method name

      @GetMapping(path = "/foo")
      ResponseEntity<...> getBar();
    

    if no operationId is available, the name is created from path (foo) and http method (get):

      @GetMapping(path = "/foo")
      ResponseEntity<...> getFoo();
    
  • openapi4j parser support. It provides better validation information. To select the parser set the parser in the processor configuration (gradle):

      openapiProcessor {
    
          spring {
              //  ... other configuration
    
              // sets the parser to SWAGGER or OPENAPI4J. if not set SWAGGER is used.
              parser 'OPENAPI4J'
          }
    
      }