···970970type SchemaToken struct {
971971 Type string `json:"type"` // "token"
972972 Description *string `json:"description,omitempty"`
973973- // the fully-qualified identifier of this token
974974- fullName string
973973+ // the fully-qualified identifier of this token. this is not included in the schema file; it must be added when parsing
974974+ FullName string `json:"-"`
975975}
976976977977func (s *SchemaToken) CheckSchema() error {
978978- if s.fullName == "" {
978978+ if s.FullName == "" {
979979 return fmt.Errorf("expected fully-qualified token name")
980980 }
981981 return nil
···986986 if !ok {
987987 return fmt.Errorf("expected a string for token, got: %s", reflect.TypeOf(d))
988988 }
989989- if s.fullName == "" {
989989+ if s.FullName == "" {
990990 return fmt.Errorf("token name was not populated at parse time")
991991 }
992992- if str != s.fullName {
992992+ if str != s.FullName {
993993 return fmt.Errorf("token name did not match expected: %s", str)
994994 }
995995 return nil