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

Should generate the output with imported models #143

Open
rafaelkyrdan opened this issue Jan 3, 2017 · 3 comments
Open

Should generate the output with imported models #143

rafaelkyrdan opened this issue Jan 3, 2017 · 3 comments

Comments

@rafaelkyrdan
Copy link

Sbt

lazy val commons = RootProject(file("commons"))
lazy val web = ().dependsOn(commons)

Model

import com.commons.model.enum.PlatformType
case class Channel(
    platformType: PlatformType.Value,
    meta: String
  )

Routes

###
#  summary: Get channel
#  responses:
#    200:
#      schema:
#        $ref: '#/definitions/models.Channel'
###

They output looks like this:

"channel": {
    "meta": "some string"
  },

So it skips the imported model. The output should look like this:

"channel": {
    "meta": "some string"
    "platformType": "some type"
  }
@rafaelkyrdan rafaelkyrdan changed the title Generate without imported models Should generate the output with imported models Jan 4, 2017
@etspaceman
Copy link

+1 - the Model view seems OK but the value returned as the "Example Value" discards objects that are imported.

@luben93
Copy link

luben93 commented Nov 13, 2017

+1

@Javakky-pxv
Copy link
Collaborator

@rafaelkyrdan
@etspaceman
@luben93
We are currently reviewing it. It may take some time, but we plan to address it.

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

4 participants