Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type "any" generates field with type Void #305

Open
hypomania opened this issue Nov 8, 2019 · 0 comments
Open

Type "any" generates field with type Void #305

hypomania opened this issue Nov 8, 2019 · 0 comments

Comments

@hypomania
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant