func isNonNullableNonDefaultableNull(x interface{ … } func getSchemaForField(field string, s *structuralschema.Structural) *structuralschema.Structural { … } // PruneNonNullableNullsWithoutDefaults removes non-nullable // non-defaultable null values from object. // // Non-nullable nulls that have a default are left alone here and will // be defaulted later. func PruneNonNullableNullsWithoutDefaults(x interface{ … }