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

Type "any" generates field with type Void #305

Open hypomania opened 4 years ago

hypomania commented 4 years ago

I have the following RAML file:

#%RAML 1.0
---
title: e-BookMobile API
baseUri: http://api.e-bookmobile.com/{version}
version: v1

types:
    song: {
          "type": "object",
          "properties": {
            "songTitle": {
              "type": "any",
            }
          }
        }

which supposedly should return something like this

class Song {
   protected Object songTitle;
}

Instead, a generated class for that type is:

public class Song implements Serializable
{

    final static long serialVersionUID = 8991256900525939275L;
    protected Void songTitle;
...

Are there any workarounds to receive songTitle with Object type?