validation.go | |
---|---|
Utils for Http Rest Request validation and decoding |
|
Generated documentation is available at: https://godoc.org/github.com/RedHatInsights/insights-operator-controller/utils Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-controller/packages/utils/validation.html |
|
DecodeValidRequest validates input maps (From Query.URL, or decoded Json Body) against template and returns typed structure srcs can be list of either map[string]interface{} or map[string][]string |
|
add invalid key to force non keyed validator to run |
|
validate generic map to report correct type errors |
|
convert valid map to type safe struct |
|
Pagination defines type safe Pagination request components |
|
PaginationTemplate contains validation for Pagination components |
|