api-guidelines icon indicating copy to clipboard operation
api-guidelines copied to clipboard

Inconsistent details example

Open rauluka opened this issue 7 years ago • 1 comments

Regarding: https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md In section 14.4.4 Example Response "details" object doesn't fit the definition of "details" in section 7.10.2, table Error: Object. Details should be Error[]

{
  "error": {
    "code": "requestLimitExceeded",
    "message": "The caller has made too many requests in the time period.",
    "details": {
      "code": "RateLimit",
       "limit": "1000",
       "remaining": "0",
       "reset": "1538152773",
      }
    }
}

It looks like in 14.4.4 "details" should be changed to "innerError".

rauluka avatar Jul 18 '19 09:07 rauluka

Great article, thanks.

ShemO254 avatar Dec 10 '19 16:12 ShemO254