mirror of
https://github.com/rancher/norman.git
synced 2025-09-01 23:36:58 +00:00
Validate subtypes in create/update
This commit is contained in:
@@ -23,11 +23,5 @@ func ParseAndValidateBody(apiContext *types.APIContext, create bool) (map[string
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if apiContext.Schema.Validator != nil {
|
||||
if err := apiContext.Schema.Validator(apiContext, data); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return data, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user