From ac030702456e33daedb445af3cc50225aa8dc297 Mon Sep 17 00:00:00 2001 From: Brian Bland Date: Wed, 13 Jan 2016 11:52:17 -0800 Subject: [PATCH] Fixes error codes in the API spec template Uses UPPER_UNDERSCORE_CASE instead of the nice error message format added in #911 Signed-off-by: Brian Bland --- docs/spec/api.md.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/spec/api.md.tmpl b/docs/spec/api.md.tmpl index ab14d7a24..375d50c15 100644 --- a/docs/spec/api.md.tmpl +++ b/docs/spec/api.md.tmpl @@ -1149,7 +1149,7 @@ The error codes that may be included in the response body are enumerated below: |Code|Message|Description| |----|-------|-----------| -{{range $err := .ErrorCodes}}| `{{$err}}` | {{$err.Descriptor.Message}} | {{$err.Descriptor.Description|removenewlines}} | +{{range $err := .ErrorCodes}}| `{{$err.Descriptor.Value}}` | {{$err.Descriptor.Message}} | {{$err.Descriptor.Description|removenewlines}} | {{end}} {{end}}{{end}}{{end}}{{end}}{{end}}{{end}}