• Yu-Ju Hong's avatar
    Factor out API defaulting from validation logic · 4a72adda
    Yu-Ju Hong authored
    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.
    4a72adda
Name
Last commit
Last update
..
converter.go Loading commit data...
converter_test.go Loading commit data...
decode.go Loading commit data...
deep_equal.go Loading commit data...
deep_equal_test.go Loading commit data...
doc.go Loading commit data...
encode.go Loading commit data...
error.go Loading commit data...
meta.go Loading commit data...
meta_test.go Loading commit data...
scheme.go Loading commit data...
scheme_test.go Loading commit data...