Skip to content

Commit

Permalink
Merge pull request #380 from ibuildthecloud/master
Browse files Browse the repository at this point in the history
Rename blacklist to skipNames
  • Loading branch information
ibuildthecloud authored Aug 20, 2020
2 parents a173b50 + eb176f0 commit 261460e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/reflection.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var (
namespacedType = reflect.TypeOf(Namespaced{})
resourceType = reflect.TypeOf(Resource{})
blacklistNames = map[string]bool{
skipNames = map[string]bool{
"links": true,
"actions": true,
"managedFields": true,
Expand Down Expand Up @@ -273,8 +273,8 @@ func (s *Schemas) readFields(schema *Schema, t reflect.Type) error {
}
}

if blacklistNames[fieldName] {
logrus.Tracef("Ignoring blacklisted field %s.%s for %v", schema.ID, fieldName, field)
if skipNames[fieldName] {
logrus.Tracef("Ignoring skip field %s.%s for %v", schema.ID, fieldName, field)
continue
}

Expand Down

0 comments on commit 261460e

Please sign in to comment.