Skip to content

Commit b67771e

Browse files
committed
fix scope json tags
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
1 parent e551774 commit b67771e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

auth/pat.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ func (et *EntityType) UnmarshalText(data []byte) (err error) {
236236
// ]
237237

238238
type Scope struct {
239-
ID string `json:"id,omitempty"`
240-
PatID string `json:"pat_id,omitempty"`
241-
OptionalDomainID string `json:"optional_domain_id,omitempty"`
242-
EntityType EntityType `json:"entity_type,omitempty"`
243-
EntityID string `json:"entity_id,omitempty"`
244-
Operation Operation `json:"operation,omitempty"`
239+
ID string `json:"id"`
240+
PatID string `json:"pat_id"`
241+
OptionalDomainID string `json:"optional_domain_id"`
242+
EntityType EntityType `json:"entity_type"`
243+
EntityID string `json:"entity_id"`
244+
Operation Operation `json:"operation"`
245245
}
246246

247247
func (s *Scope) Authorized(entityType EntityType, optionalDomainID string, operation Operation, entityID string) bool {

0 commit comments

Comments
 (0)