Skip to content

Type "any" generates field with type Void #305

Description

@hypomania

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions