Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd4d483

Browse files
committed
Linting
1 parent3949498 commitbd4d483

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
typeSlimRolestruct {
1717
Namestring`json:"name"`
1818
DisplayNamestring`json:"display_name"`
19-
OrganizationIDstring`json:"organization_id"`
19+
OrganizationIDstring`json:"organization_id,omitempty"`
2020
}
2121

2222
typeAssignableRolesstruct {
@@ -37,7 +37,7 @@ type Permission struct {
3737
// Role is a longer form of SlimRole used to edit custom roles.
3838
typeRolestruct {
3939
Namestring`json:"name" table:"name,default_sort" validate:"username"`
40-
OrganizationIDstring`json:"organization_id" table:"organization_id" format:"uuid"`
40+
OrganizationIDstring`json:"organization_id,omitempty" table:"organization_id" format:"uuid"`
4141
DisplayNamestring`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 aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp