Skip to content

2.0.0

Compare
Choose a tag to compare
@stojsavljevic stojsavljevic released this 10 Apr 10:32
· 73 commits to master since this release

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.