Skip to content

Releases: openapi-processor/openapi-processor-spring

1.0.0.M6

25 Jan 16:18
Compare
Choose a tag to compare
1.0.0.M6 Pre-release
Pre-release

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 the exclude property on the endpoint in the mapping.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 the mapping.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 to true in the mapping.yaml:

     options: bean-validation: true 

    Thanks to @schlagi123

1.0.0.M5

05 Jan 17:38
Compare
Choose a tag to compare
1.0.0.M5 Pre-release
Pre-release

improvements

  • #56/#57 support request body with multipart/form-data. For file upload the OpenAPI schema string with format binary must be type mapped to org.springframework.web.multipart.MultipartFile:

     map: paths: /api/upload: types: - from: string:binary to: org.springframework.web.multipart.MultipartFile 

fixes

  • #58 fixed type of void, i.e. ResponseEntity<Void> instead of ResponseEntity<void>
  • #53 fixed missing import of mapped target type
  • #52 fixed missing @ResponseBody import
  • #49 fixed broken inline type names containing slashes
  • #47 fixed missing jackson import in generated enum model class

1.0.0.A3

08 Dec 16:35
Compare
Choose a tag to compare
1.0.0.A3 Pre-release
Pre-release
  • #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

23 Nov 18:03
Compare
Choose a tag to compare
1.0.0.A2 Pre-release
Pre-release

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 to java.time.OffsetDateTime
  • #7, support for mapping simple types only for a specific format (e.g. string:date-time)

Fixed:

  • #12, import of a generic type adds additional imports for the generic types
  • #8, property order of model objects matches api description
  • #4, empty type mapping yaml does not crash the mapping reader

1.0.0.A1

05 Nov 23:32
Compare
Choose a tag to compare
1.0.0.A1 Pre-release
Pre-release
  • initial version