Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortErrorDetails ¶
func SortErrorDetails(errs []*v1.ErrorDetail)
SortErrorDetails sorts a slice of error details for predictability, by modifying the inputted slice.
Orders by errors without field names in ascending order first (using their messages), and then orders the field names in ascending order.
Types ¶
type Error ¶
type Error struct {
Errs []*v1.ErrorDetail
}
type ErrorTranslator ¶
type ErrorTranslator struct {
// contains filtered or unexported fields
}
ErrorTranslator translates JSON Schema errors into Error.
Click to show internal directories.
Click to hide internal directories.