Clayton Coleman
619f3a6804
Allow ValidationErrorList to be filtered
...
Expose basic filters on an error list to ignore certain error types.
This can be used by client code to ignore errors on common schema
types like "metadata.name" or the NotFound error type.
2015-02-16 17:45:54 -05:00
Clayton Coleman
a0356bca96
Unify validation logic for create and update paths
...
Ensure ObjectMeta is consistently validated on both create and update
Make PortalIP uncleareable
2015-01-28 13:10:37 -05:00
Clayton Coleman
72cc17b41c
Omit empty quotes in message when required value field error type
2015-01-27 17:04:59 -05:00
Daniel Smith
c81dda5d61
improve validation error message printing
2015-01-09 13:06:24 -08:00
George Kuan
5e1fc1f4e0
Fixes #1605 : make ErrorList introspectable by replacing ErrorList and
...
ErrorList#ToError with []error and util.SliceToError() respectively
2014-12-12 10:56:31 -08:00
Tim Hockin
ff8c5f9415
Add a Detail field to Validation Error
2014-11-24 17:28:42 -08:00
Tim Hockin
b08e5b24b0
Change ValidationError to a pointer
...
In Prep for adding at leats one more field, make this operate more list
StatusError.
2014-11-24 17:28:42 -08:00
Yuki Yugui Sonoda
864bfb65da
Fixes golint errors in pkg/api.
2014-11-14 13:14:23 +09:00
Clayton Coleman
a68a493e4b
Alter the error message when an error list is put in an error list
2014-11-10 11:33:51 -05:00
Tim Hockin
d6effe3c6d
Rename api ErrorList for clarity
2014-10-24 09:43:14 -07:00
Eric Tune
bb5a17488f
Use Forbidden valdiation error when no capability
2014-10-14 16:14:28 -07:00
Tim Hockin
7e83211840
Move ErrorList to util
2014-10-06 12:12:35 -07:00
Tim Hockin
f2cf958540
Caps for CauseType
2014-09-27 21:48:35 -07:00
Clayton Coleman
34c40e4e48
Errors should be part of api/errors, not apiserver
...
Renames constructor methods to be errors.New<name> which changed a few
places.
2014-09-03 17:16:00 -04:00
Clayton Coleman
6dd4831de8
Move validation errors into their own file
2014-09-03 17:14:03 -04:00