Coder Social home page Coder Social logo

Comments (8)

apryor6 avatar apryor6 commented on June 11, 2024 2

I don't see any way for a workaround without implementing the above mapping. If we mapped the validators in a similar fashion to how the fields are mapped from marshmallow to restx, then the docs should work. It will require a bit of dev work which I can't provide right now - but would be a great contribution opportunity.

from flask_accepts.

BenC14 avatar BenC14 commented on June 11, 2024

As a side thought one of the reasons this is so frustrating is the limitation that you cannot modify the fields generated by the for_swagger method if they come from a marshmallow schema. Obviously this is the main feature of the whole library so I can understand why it isn't a feature yet. However if there was a way to override or extend fields from the schema using the dict() parameters you would preserve the convenience of marshmallow schema's for the common case while allowing for slight modifications when you need to make a single field change. Just a thought.

from flask_accepts.

apryor6 avatar apryor6 commented on June 11, 2024

There is also some semi-relevant discussion in #16

from flask_accepts.

apryor6 avatar apryor6 commented on June 11, 2024

I am completely open to enabling this functionality. It was deprioritized previously due to being an outsized amount of work versus a smallish unlock, but if a increasing number of users have need for this then that priority goes up.

My bandwidth is nonexistent as of late, but if you’d like to take a stab I’m happy to comment/mentor/discuss through it.

from flask_accepts.

azzamsa avatar azzamsa commented on June 11, 2024

My point of using swagger is that for internal/private app, I don't need to write docs alongside the app.

My web app had many fields with validate.OneOf() schema. They didn't show up in swagger. So the end-user can't know what are available options.

+1

from flask_accepts.

yujinyuz avatar yujinyuz commented on June 11, 2024

+1 for this feature

from flask_accepts.

yujinyuz avatar yujinyuz commented on June 11, 2024

Are there any workarounds for this to work?

from flask_accepts.

eduardovra avatar eduardovra commented on June 11, 2024

+1 for this feature

from flask_accepts.

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.