Releases: openapi-processor/openapi-processor-spring
1.0.0.M7
1.0.0.M6
improvements
-
#68, exclude endpoints. To avoid an all-or-nothing issue it is possible to exclude endpoints when the generatr does not create the expected code. Excluded endpoints will be generated to a sibling interface with an
Excludedpostfix for reference. To exclude an endpoint set theexcludeproperty on the endpoint in themapping.yaml:map: paths: /foo: exclude: true -
#62, it is now possible to add additional parameters not defined in the OpenAPI description to an endpoint by adding an
add/asmapping like this to themapping.yaml:map: paths: /foo: parameters: - add: request as: javax.servlet.http.HttpServletRequest -
#34, support for bean validations. If enabled maps the openapi constraints to java bean validation annotations. Its off by default, to enable it set
bean-validationtotruein themapping.yaml:options: bean-validation: trueThanks to @schlagi123
1.0.0.M5
improvements
-
#56/#57 support request body with
multipart/form-data. For file upload the OpenAPI schemastringwith formatbinarymust be type mapped toorg.springframework.web.multipart.MultipartFile:map: paths: /api/upload: types: - from: string:binary to: org.springframework.web.multipart.MultipartFile
fixes
1.0.0.A3
- #43, full data type mapping support (type, parameter & response, endpoint, endpoint parameter & response) on primitive, array and object schemas.
- #6, support for parameter default values
@RequestParam(.. defaultValue = ...)on primitive types (string, integer, number, boolean) - #33, enum support for string type. The generatr will create an enum class for a string schema with an enum property list.
1.0.0.A2
Improved:
- #9, create valid java identifiers & map model object property names with
@JsonProperty - #24, support for
requestBody:parameter - #21, support for
-in: pathendpoint parameters - #22, support for
-in: headerendpoint parameters - #23, support for
in: cookieendpoint parameters - #3, default mapping of
string:date-timetojava.time.OffsetDateTime - #7, support for mapping simple types only for a specific format (e.g.
string:date-time)