Giter Club home page Giter Club logo

Comments (4)

AngelosPrastitis avatar AngelosPrastitis commented on May 26, 2024 1

I agree with Vasily. I spent two days trying to see the model in Swagger UI because I didn't add the domain package that i should. Some people have restricted knowledge of the terms (in my case i didn't understand the term domain package). Therefore in step1 of the instructions where we are instructed to put swaggerDomainNameSpaces := Seq("models") in the sbt file I I put it exactly identical to the instruction. My defined model case class was in the domain settings.models in my project.

It would be nice to add the following in this instruction:
If you have a case class defined under the package "something.models" and you would want to swagger to generate the definition for it (to access with #ref:definitions/), then make sure that the following is added in sbt: swaggerDomainNameSpaces := Seq("something.models")
If you have other case classes in other packages (e.g. other.models) the add them also in the above sequence like: swaggerDomainNameSpaces := Seq("something.models","other.models")

from play-swagger.

kailuowang avatar kailuowang commented on May 26, 2024

I am wondering if you included the models package as a domain package name when generating the swagger spec as in https://github.com/iheartradio/play-swagger#step-2?

from play-swagger.

vasily-kirichenko avatar vasily-kirichenko commented on May 26, 2024

I didn't. Thanks a lot!

Maybe it's a good idea to add a hint like "are you sure you added 'xxx' package as a domain one?"

from play-swagger.

kailuowang avatar kailuowang commented on May 26, 2024

@AngelosPrastitis thanks for your feedback. Would you help by submitting a PR to the readme file?

from play-swagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.