onebusaway-application-modules icon indicating copy to clipboard operation
onebusaway-application-modules copied to clipboard

Invalid radius values returns unexpected XML

Open dxrdxr opened this issue 7 years ago • 0 comments

Send the following request:

http://api.pugetsound.onebusaway.org/api/where/stops-for-location.xml?key=TEST&lat=47.653435&lon=-122.305641&radius=FOOBAR

See the result that will likely break most clients:

<map> <entry> <string>fieldErrors</string> <linked-hash-map> <entry> <string>radius</string> <list> <string>Invalid field value for field "radius".</string> </list> </entry> </linked-hash-map> </entry> </map>

Same things happens for other numeric fields such as lat/lon

dxrdxr avatar Sep 02 '17 02:09 dxrdxr