phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

In raml type when property name and display name are different then in the generated class is adding JsonProperty(typeName) annotation. #273

Open ravindrajaiswal opened 5 years ago

ravindrajaiswal commented 5 years ago

Need a way to override this so that I can use the display name as the attribute name in request or response object.

stojsavljevic commented 5 years ago

Hi,

Thanks for reaching us.

I'm not sure I understand your usecase. Display name can be used only as Java attribute name. Request parameter name is always as defined in raml.

If I didn't understand you properly please provide a simple example.