mirror of
https://github.com/rancher/norman.git
synced 2025-09-03 08:14:40 +00:00
Rename method
This commit is contained in:
@@ -151,13 +151,13 @@ func (b *Builder) checkDefaultAndRequired(schema *types.Schema, input map[string
|
||||
}
|
||||
|
||||
if op.IsList() && b.export {
|
||||
b.dropDefaults(schema, result)
|
||||
b.dropDefaultsAndReadOnly(schema, result)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (b *Builder) dropDefaults(schema *types.Schema, result map[string]interface{}) {
|
||||
func (b *Builder) dropDefaultsAndReadOnly(schema *types.Schema, result map[string]interface{}) {
|
||||
for name, existingVal := range result {
|
||||
field, ok := schema.ResourceFields[name]
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user