ga4gh / ga4gh-server

Reference implementation of the APIs defined in ga4gh-schemas. RETIRED 2018-01-24
http://ga4gh.org
Apache License 2.0
96 stars 93 forks source link

Validation error response #804

Open david4096 opened 8 years ago

david4096 commented 8 years ago

When receiving a 400 Bad Request it would be helpful if the fields in the request that didn't pass validation were in the message. For example, if a string is sent in place of an integer.

diekhans commented 8 years ago

How the protocol buffers parser behaves will be a factor in what error information can be returned. Work on this issue should be delayed until after the conversion.

David Steinberg notifications@github.com writes:

When receiving a 400 Bad Request it would be helpful if the fields in the request that didn't pass validation were in the message. For example, if a string is sent in place of an integer.

— Reply to this email directly or view it on GitHub.*

jeromekelleher commented 8 years ago

Agreed with @diekhans --- we won't know quite how to do this until we've finished the protobuf conversion.