2021.1
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 thejavadocoption totrue: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.StringThe 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. IfFoowas only referenced byFooPageno model class was generated forFoo. -
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.yamldoes not exist -
updated swagger parser to 2.0.24 (was 2.0.23)