mozilla-services/cornice — Issue #7: provide a structured output for the validation
Author: tarekziade
Created: 2011-11-30 21:44:33+00:00
State: open

Right now the validators must return the status and a message, we want something more structurized:

status, message, details

where details is a list of errors the validator found. each error is a dict containing those keys:

- domain": "global",
- reason: a string describing the reason of the failure ("required", etc)
- message: a strng detailing the problem
- locationType : where the faulty parameter is to be found in the request ("header", "body", "path", "method")
- location: The actual parameter name

The response will be a json object containing all this information