hapi-server / data-specification-schema

JSON Schema for HAPI
MIT License
1 stars 0 forks source link

Requirements when response is error #11

Open rweigel opened 5 months ago

rweigel commented 5 months ago

We need to clarify in the documentation that if there is an error, the only required elements are HAPI and status. For example, the following should be valid

{
    "HAPI": "2.1",
    "status": {
        "code": 1406,
        "message": "HAPI error 1406: unknown id"
    }
}

For < 3.0, this was tested for against a subschema that was not a part of the info schema.