Skip to content

Commit bf61852

Browse files
committed
fix pat and scope response
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
1 parent fd58453 commit bf61852

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth/pat.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ type PATSPage struct {
312312
Total uint64 `json:"total"`
313313
Offset uint64 `json:"offset"`
314314
Limit uint64 `json:"limit"`
315-
PATS []PAT `json:"pats,omitempty"`
315+
PATS []PAT `json:"pats"`
316316
}
317317

318318
type ScopesPageMeta struct {
@@ -324,9 +324,9 @@ type ScopesPageMeta struct {
324324

325325
type ScopesPage struct {
326326
Total uint64 `json:"total"`
327-
Offset uint64 `json:"offset,omitempty"`
328-
Limit uint64 `json:"limit,omitempy"`
329-
Scopes []Scope `json:"scopes,omitempty"`
327+
Offset uint64 `json:"offset"`
328+
Limit uint64 `json:"limit"`
329+
Scopes []Scope `json:"scopes"`
330330
}
331331

332332
func (pat PAT) MarshalBinary() ([]byte, error) {

0 commit comments

Comments
 (0)