python-restx / flask-restx

Fork of Flask-RESTPlus: Fully featured framework for fast, easy and documented API development with Flask
https://flask-restx.readthedocs.io/en/latest/
Other
2.16k stars 335 forks source link

Implement writeOnly for documentation purpose #413

Closed morland96 closed 2 years ago

morland96 commented 2 years ago

This framework already has the readonly parameters for the swagger generation, while the writeonly is still missing. It's very important when implementing models like user while the password should only be assigned and shouldn't appear in any response body.

        "password": fields.String(
            required=True, writeonly=True, description="Password", example="password"
        ),