We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serializer.normalize()
FormData
If the request's content-type is "x-www-form-urlencoded", and the route handler function calls normalizedRequestAttrs(), flow is directed towards:
"x-www-form-urlencoded"
normalizedRequestAttrs()
miragejs/lib/route-handlers/function.js
Line 52 in b965b8a
And away from:
Line 70 in b965b8a
_getAttrsForRequest() ends up in _getJsonApiDocForRequest() where normalize() is called on the serializer:
_getAttrsForRequest()
_getJsonApiDocForRequest()
normalize()
miragejs/lib/route-handlers/base.js
Line 51 in b965b8a
However, _getAttrsForFormRequest() does not end up in _getJsonApiDocForRequest() so the serializer's normalize() method is never called.
_getAttrsForFormRequest()
A request with form data also hits the serializer's normalize() method.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Observed
If the request's content-type is
"x-www-form-urlencoded"
, and the route handler function callsnormalizedRequestAttrs()
, flow is directed towards:miragejs/lib/route-handlers/function.js
Line 52 in b965b8a
And away from:
miragejs/lib/route-handlers/function.js
Line 70 in b965b8a
_getAttrsForRequest()
ends up in_getJsonApiDocForRequest()
wherenormalize()
is called on the serializer:miragejs/lib/route-handlers/base.js
Line 51 in b965b8a
However,
_getAttrsForFormRequest()
does not end up in_getJsonApiDocForRequest()
so the serializer'snormalize()
method is never called.Expected
A request with form data also hits the serializer's
normalize()
method.The text was updated successfully, but these errors were encountered: