Skip to content

Commit

Permalink
The permissions are not optional when serialized.
Browse files Browse the repository at this point in the history
Update registry provider version permissions according to the docs.
  • Loading branch information
annawinkler committed Jun 3, 2022
1 parent d55ca55 commit 42b8284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion registry_provider.go
Expand Up @@ -68,7 +68,7 @@ type RegistryProvider struct {
}

type RegistryProviderPermissions struct {
CanDelete bool `jsonapi:"attr,can-delete,omitempty"`
CanDelete bool `jsonapi:"attr,can-delete"`
}

type RegistryProviderListOptions struct {
Expand Down
3 changes: 2 additions & 1 deletion registry_provider_version.go
Expand Up @@ -59,7 +59,8 @@ type RegistryProviderVersionID struct {
}

type RegistryProviderVersionPermissions struct {
CanUploadAsset bool `jsonapi:"attr,can-upload-asset,omitempty"`
CanDelete bool `jsonapi:"attr,can-delete"`
CanUploadAsset bool `jsonapi:"attr,can-upload-asset"`
}

type RegistryProviderVersionList struct {
Expand Down

0 comments on commit 42b8284

Please sign in to comment.