model primitive enforce to include required fields in requests
ybekdemir opened this issue · 0 comments
ybekdemir commented
We are using pyswagger to make internal service call through gateway. Gateway validates request body with the related model by using model primitive. The problem is apply_with
method in the model primitive enforce us to include all required fields in our requests body. Especially for the update calls we don't want to include required fields which we don't want to update. I found this code under aply_with
pyswagger/pyswagger/primitives/_model.py
Line 47 in 333c4ca
I just want to learn that what is the reason behind this ? Is this best practice?
Thanks.