ashleysommer / sanic-restplus

Fully featured framework for fast, easy and documented API development with Sanic
http://flask-restplus.readthedocs.org
Other
104 stars 14 forks source link

Use .json property to get request content instead of get_json() #8

Closed MihaiBalint closed 5 years ago

MihaiBalint commented 5 years ago

.get_json() is undefined for Request objects in Sanic.

ashleysommer commented 5 years ago

Thank you! The payload validation feature was something that wasn't yet fully ported from flask-restplus, and I hadn't yet tested this feature myself. With this change, does it work as expected for you?

MihaiBalint commented 5 years ago

I only have a couple of tests for now, next week I'll dive deeper into payload validation edge cases.