roboswag icon indicating copy to clipboard operation
roboswag copied to clipboard

Pass either model object or dictionary to the body parameter

Open mnojek opened this issue 2 years ago • 0 comments

At this moment, the body parameter only accepts dictionary, which can be optionally validated by providing a boolean value for validate_payload parameter. The endpoint methods should also accept providing the payload using an object that later can be serialized into a dictionary.

mnojek avatar Mar 07 '22 20:03 mnojek