Releases: openapi-processor/openapi-processor-spring
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
Excluded
postfix for reference. To exclude an endpoint set theexclude
property 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/as
mapping 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-validation
totrue
in themapping.yaml
:options: bean-validation: true
Thanks to @schlagi123
1.0.0.M5
improvements
-
#56/#57 support request body with
multipart/form-data
. For file upload the OpenAPI schemastring
with formatbinary
must 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: path
endpoint parameters - #22, support for
-in: header
endpoint parameters - #23, support for
in: cookie
endpoint parameters - #3, default mapping of
string:date-time
tojava.time.OffsetDateTime
- #7, support for mapping simple types only for a specific format (e.g.
string:date-time
)