Skip to content

2021.1

Choose a tag to compare

@hauner hauner released this 23 Dec 09:42
· 2387 commits to main since this release

copied from openapi-processor-core

  • jars are published on maven central (was jcenter).

  • (beta) generation of javadoc from OpenAPI descriptions. It is off by default, to enable set the javadoc option to true:

    openapi-processor-mapping: v2
    
    options:
      javadoc: true
    
  • (experimental) additional add parameter annotation. It is possible to add one additional annotation to a parameter add mapping.

    Motivation is the micronaut @RequestAttribute annotation. It is required to bind a parameter to an attribute of the request which is typically created in a filter:

    openapi-processor-mapping: v2
    
    map:
      paths:
        /api/process:
          parameters:
            - add: requestId => io.micronaut.http.annotation.RequestAttribute("requestId") java.lang.String
    

    The parameters of the annotation are "passed through" as string.

  • openapi-processor/openapi-processor-core#50, improved detection of used schemas for model class generation. It now detects schemas that are only use by a type mapping:

    openapi-processor-mapping: v2
    
    map:
      types:
        - type: FooPage => org.springframework.data.domain.Page<generated.model.Foo>
    

    Because of the mapping the processor didn't look at anything that was part (property of) of FooPage. If Foo was only referenced by FooPage no model class was generated for Foo.

  • openapi-processor/openapi-processor-core#51, handle schemas without properties (i.e. do not crash), e.g.

    type: object
    additionalProperties: { }
    
  • openapi-processor/openapi-processor-core#1, better error reporting if the openapi.yaml does not exist

  • updated swagger parser to 2.0.24 (was 2.0.23)