k3s/pkg/api/validation
Yu-Ju Hong 4a72addaeb Factor out API defaulting from validation logic
Currently, the validation logic validates fields in an object and supply default
values wherever applies. This change factors out defaulting to a set of
defaulting callback functions for decoding (see #1502 for more discussion).

 * This change is based on pull request 2587.

 * Most defaulting has been migrated to defaults.go where the defaulting
   functions are added.

 * validation_test.go and converter_test.go have been adapted to not testing the
   default values.

 * Fixed all tests with that create invalid objects with the absence of
   defaulting logic.
2015-02-03 00:55:42 -08:00
..
doc.go Make validation work when not in the api package. 2014-09-02 10:42:06 -07:00
events.go Add a Detail field to Validation Error 2014-11-24 17:28:42 -08:00
events_test.go Fix server-side namespace handling for events; add validation 2014-11-14 09:43:28 -08:00
schema.go Upgrade from gopkg.in/v2/yaml to gopkg.in/yaml.v2 everywhere 2015-01-13 15:06:25 -08:00
schema_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
v1beta1-swagger.json Add a swagger schema validator, for validating client side json files. 2014-11-20 22:16:55 -08:00
validation.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00
validation_test.go Factor out API defaulting from validation logic 2015-02-03 00:55:42 -08:00