diff options
Diffstat (limited to 'clients/netbox/model.go')
-rw-r--r-- | clients/netbox/model.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clients/netbox/model.go b/clients/netbox/model.go index be4767d..6ff0e6c 100644 --- a/clients/netbox/model.go +++ b/clients/netbox/model.go | |||
@@ -8,7 +8,12 @@ import ( | |||
8 | 8 | ||
9 | type ApiError struct { | 9 | type ApiError struct { |
10 | Status int | 10 | Status int |
11 | Detail string `json:"detail"` | 11 | Detail string `json:"detail"` |
12 | Errors []ApiSubError `json:"errors"` | ||
13 | } | ||
14 | |||
15 | type ApiSubError struct { | ||
16 | Message string `json:"message"` | ||
12 | } | 17 | } |
13 | 18 | ||
14 | func (e *ApiError) Error() string { | 19 | func (e *ApiError) Error() string { |