Coder Social home page Coder Social logo

Comments (2)

Javakky-pxv avatar Javakky-pxv commented on May 25, 2024

@kailuowang
Please, advise.
It's a feature I'd like to have, but I'm wondering if it's a good idea to encourage users to install another compiler plugin.
Have you considered this feature in the past? And do you prefer this policy?

from play-swagger.

kailuowang avatar kailuowang commented on May 25, 2024

@kailuowang Please, advise. It's a feature I'd like to have, but I'm wondering if it's a good idea to encourage users to install another compiler plugin. Have you considered this feature in the past? And do you prefer this policy?

We thought about this. I don't feel super enthusiastic about this feature. It could be more convenient. But it also makes it necessary for the user to be very careful writing scaladoc comments in their code because it's automatically exposed to the API doc which is open.
Usually scaladoc is for internal dev consumption only, while open API doc has a more open access.
Play-swagger generates docs with information already available to the API consumer, i.e. field name and types. Scaladoc, on the other hand, is never available to API consumers.
I think fundamentally, scaladoc and swagger API specification are two different docs that serve different purposes and audiences. There are some overlaps and duplications, but using the same text for both might be risky.
That being said, If this can be an opt-in feature, I think some users can benefit from it as long as they understand the caveats.

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.