mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct malformed struct tags in organizationroles and scim_test (#23497)
Fix leading space in table tag and escaped-quote tag syntax. Extracted from #23201.
This commit is contained in:
@@ -40,17 +40,17 @@ func makeScimUser(t testing.TB) coderd.SCIMUser {
|
||||
return coderd.SCIMUser{
|
||||
UserName: rstr,
|
||||
Name: struct {
|
||||
GivenName string "json:\"givenName\""
|
||||
FamilyName string "json:\"familyName\""
|
||||
GivenName string `json:"givenName"`
|
||||
FamilyName string `json:"familyName"`
|
||||
}{
|
||||
GivenName: rstr,
|
||||
FamilyName: rstr,
|
||||
},
|
||||
Emails: []struct {
|
||||
Primary bool "json:\"primary\""
|
||||
Value string "json:\"value\" format:\"email\""
|
||||
Type string "json:\"type\""
|
||||
Display string "json:\"display\""
|
||||
Primary bool `json:"primary"`
|
||||
Value string `json:"value" format:"email"`
|
||||
Type string `json:"type"`
|
||||
Display string `json:"display"`
|
||||
}{
|
||||
{Primary: true, Value: fmt.Sprintf("%s@coder.com", rstr)},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user