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

Support nullable in model fields #414

Open piurass opened 2 years ago

piurass commented 2 years ago

I would like to request support to nullable option in all model fields like String, Integer, Boolean, DataTime and so on. In Nested fields we have "allow_null" parameter that could be used for all others. This feature is very important in cases that we receive optional fields in apis that could not be deleted from frontend or software requester. And this capability is common in other validation libraries. Please could you evaluate this implementation? Many thanks.