We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent3949498 commitbd4d483Copy full SHA for bd4d483
codersdk/roles.go
@@ -16,7 +16,7 @@ import (
16
typeSlimRolestruct {
17
Namestring`json:"name"`
18
DisplayNamestring`json:"display_name"`
19
-OrganizationIDstring`json:"organization_id"`
+OrganizationIDstring`json:"organization_id,omitempty"`
20
}
21
22
typeAssignableRolesstruct {
@@ -37,7 +37,7 @@ type Permission struct {
37
// Role is a longer form of SlimRole used to edit custom roles.
38
typeRolestruct {
39
Namestring`json:"name" table:"name,default_sort" validate:"username"`
40
-OrganizationIDstring`json:"organization_id" table:"organization_id" format:"uuid"`
+OrganizationIDstring`json:"organization_id,omitempty" table:"organization_id" format:"uuid"`
41
DisplayNamestring`json:"display_name" table:"display_name"`
42
SitePermissions []Permission`json:"site_permissions" table:"site_permissions"`
43
// OrganizationPermissions are specific for the organization in the field 'OrganizationID' above.
site/src/api/typesGenerated.ts