encode / apistar

The Web API toolkit. 🛠
https://docs.apistar.com
BSD 3-Clause "New" or "Revised" License
5.57k stars 411 forks source link

Schema Validation not correct for payload structure #660

Closed carltongibson closed 4 years ago

carltongibson commented 5 years ago

c.f. https://github.com/encode/django-rest-framework/pull/6565

Required structure looks like this:

request_body['content']['application/json']['schema']

Prior to this fix I'd missed the schema level, but apistar was reporting a valid schema.