mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00: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:
committed by
GitHub
parent
8bd87f8588
commit
38f723288f
@@ -524,7 +524,7 @@ type roleTableRow struct {
|
||||
Name string `table:"name,default_sort"`
|
||||
DisplayName string `table:"display name"`
|
||||
OrganizationID string `table:"organization id"`
|
||||
SitePermissions string ` table:"site permissions"`
|
||||
SitePermissions string `table:"site permissions"`
|
||||
// map[<org_id>] -> Permissions
|
||||
OrganizationPermissions string `table:"organization permissions"`
|
||||
UserPermissions string `table:"user permissions"`
|
||||
|
||||
@@ -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