Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Case classes inside of objects are not being added to the model #52

Open
jshamash opened this issue Jan 15, 2015 · 0 comments
Open

Case classes inside of objects are not being added to the model #52

jshamash opened this issue Jan 15, 2015 · 0 comments

Comments

@jshamash
Copy link

In my code I have an object like this:

package com.example

object Stuff {
  @ApiModel(description = "A thing")
  case class Thing(@(ApiModelProperty @field)(value = "ID of the thing") id: String)
}

And I want to do:

@ApiImplicitParams(Array(
  new ApiImplicitParam(name="thing", required=true, dataType="com.example.Stuff.Thing", paramType="body", value="A thing to add.")
))

However, the type "Thing" never gets added to the models. Moving "Thing" outside of the object causes it to show up in the models.

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

No branches or pull requests

1 participant