Closed grosch closed 9 years ago
When I call my postChild method, shown at https://gist.github.com/grosch/04fa29b0a63b1cc427af#file-restler-incident-example, I'm getting back an error 400:
Bad Request: Invalid value specified foremail. Expecting email inname@example.comformat
Bad Request: Invalid value specified for
. Expecting email in
format
This should be be happening as nowhere in there have I specified {@type email}. How do I stop this?
when an a field is named as email most of the time we want it to be validated as email, thus the default behavior
You can turn it off by adding {@type string} comment for the parameter
{@type string}
When I call my postChild method, shown at https://gist.github.com/grosch/04fa29b0a63b1cc427af#file-restler-incident-example, I'm getting back an error 400:
Bad Request: Invalid value specified for
email. Expecting email in
name@example.comformat
This should be be happening as nowhere in there have I specified {@type email}. How do I stop this?