Skip to content

Releases: phoenixnap/springmvc-raml-plugin

v2.0.5

29 Jan 16:18
Compare
Choose a tag to compare

Maven

Improvements:

  • #163 Access HttpServletRequest in Spring Controller that implements generated interface

Bugfixes

  • #283 Optional queryParameters in subsequent traits are not included in generated code
  • #291 Deeper imports not considered
  • #292 Query parameter enums are generated as Strings

v2.0.4

01 Oct 14:43
Compare
Choose a tag to compare

Maven

Improvements:

  • #152 Collision with java keywords
  • #254 Skip headers in method parameters when using injectHttpHeadersParameter
  • #257 Support for DeferredResult
  • #282 Enums create String.java source file which is confusing

Bugfixes

  • #266 Collections are always initialized
  • #275 Import Statement for BigDecimal/BigInteger not generated for responses
  • #281 Spring4ControllerStubRule omits ResponseEntity for POJOs (data types)
  • #284 FeignClient issues
  • #286 overrideNamingLogicWith not respected when generating rest client
  • #288 Import Statement for BigDecimal/BigInteger not generated for request body

Other Changes

  • raml-parser-2 updated to 1.0.26
  • README.md got link to PhoenixNAP blog post on using RAML to document API contracts

v2.0.3

17 Jul 13:32
Compare
Choose a tag to compare

Maven

Bugfixes

  • #265 @Valid annotations added on same getter in both parent and child objects lead to exception

v2.0.2

13 Jun 12:36
Compare
Choose a tag to compare

Maven

Improvements:

  • #258 Set @JsonProperty in generated POJOs for proper serialization
  • #261 Method names for DELETE are not self-explanatory
  • #263 Suppress Generation of Controller / Decorator for specific endpoints

v2.0.1

21 May 10:04
Compare
Choose a tag to compare

Maven

Improvements:

  • #225 Support JSON schemas in RAML 1.0
  • #240 (and #253) Configurable date type support
  • #245 Optionally exclude all validation annotations
  • #247 Option to skip type's attribute from toString
  • #248 Inherited properties not respected
  • #250 Better naming control

2.0.0

10 Apr 10:32
Compare
Choose a tag to compare

Maven

Removed support for:

  • RAML 0.8
  • Spring 3
  • RAML creation (we're focused on the contract-first approach)
  • Keeping code and RAML in sync

Improvements:

  • #241 Generating client for more than one authorization grant
  • #242 Discriminator support

Bugfixes

  • #235 Delete does not generate body parameter
  • #236 Generated client sends query param even if the value is null

Other changes:

  • Project is restructured. Also, packages changed and new rules' package is com.phoenixnap.oss.ramlplugin.raml2code.rules so new configuration might look like this:
<configuration>
    <ramlPath>src/main/resources/public/api.raml</ramlPath>
    <outputRelativePath>target/generated-raml-mvc</outputRelativePath>
    ...
    <rule>com.phoenixnap.oss.ramlplugin.raml2code.rules.Spring4ControllerDecoratorRule</rule>
    <generationConfig>
    	<useCommonsLang3>true</useCommonsLang3>
    	<includeConstructors>true</includeConstructors>
    	<generateBuilders>true</generateBuilders>
    </generationConfig>
</configuration>
  • Method naming logic is changed. Previously, methos names were generated based on resource path and now based on request/response objects and parameters.