Skip to content

Commit bd4d483

Browse files
committed
Linting
1 parent 3949498 commit bd4d483

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

codersdk/roles.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
type SlimRole struct {
1717
Name string `json:"name"`
1818
DisplayName string `json:"display_name"`
19-
OrganizationID string `json:"organization_id"`
19+
OrganizationID string `json:"organization_id,omitempty"`
2020
}
2121

2222
type AssignableRoles struct {
@@ -37,7 +37,7 @@ type Permission struct {
3737
// Role is a longer form of SlimRole used to edit custom roles.
3838
type Role struct {
3939
Name string `json:"name" table:"name,default_sort" validate:"username"`
40-
OrganizationID string `json:"organization_id" table:"organization_id" format:"uuid"`
40+
OrganizationID string `json:"organization_id,omitempty" table:"organization_id" format:"uuid"`
4141
DisplayName string `json:"display_name" table:"display_name"`
4242
SitePermissions []Permission `json:"site_permissions" table:"site_permissions"`
4343
// OrganizationPermissions are specific for the organization in the field 'OrganizationID' above.

site/src/api/typesGenerated.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)