Documentation
¶
Overview ¶
Package cli wires Cobra commands, global flags, and command-level helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶ added in v0.4.0
type APIError struct {
Status int
Detail string
Fields []FieldError
Raw []byte
}
APIError is a non-2xx API response rendered for humans.
The API is Django REST Framework, which returns a small number of predictable error shapes. Parsing them into fields beats dumping raw JSON at the user, which is what this replaced.
type FieldError ¶ added in v0.4.0
FieldError is one field's validation messages.
Click to show internal directories.
Click to hide internal directories.