seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

allow calling `request.json()` without error #57

Closed mxsdev closed 9 months ago

mxsdev commented 9 months ago

We have to clone the request over in the input validation process in order to allow this behavior

cc @seveibar

mxsdev commented 9 months ago

should we just hide .json()? when would you want to use it over .jsonBody()?

cc @seveibar

seveibar commented 9 months ago

should we just hide .json()? when would you want to use it over .jsonBody()?

cc @seveibar

I think we should just allow it via generous acceptance and for wintercg compat

codetheweb commented 9 months ago

I think we should just allow it via generous acceptance and for wintercg compat

.json() is currently untyped though...