Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 316 forks source link

Erroneously complaining about email parameter #375

Closed grosch closed 9 years ago

grosch commented 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

This should be be happening as nowhere in there have I specified {@type email}. How do I stop this?

Arul- commented 9 years ago

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