Skip to content

Commit

Permalink
Fix: auth endpoints validation
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Nov 4, 2024
1 parent c2eb5f7 commit d9db762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/api/handler/rollup_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type createRollupRequest struct {
Explorer string `json:"explorer" validate:"omitempty,url"`
Stack string `json:"stack" validate:"omitempty"`
Links []string `json:"links" validate:"omitempty,dive,url"`
Category string `json:"category" validate:"omitempty,oneof=nft gaming finance uncategorized"`
Category string `json:"category" validate:"omitempty,category"`
Type string `json:"type" validate:"omitempty,oneof=settled sovereign"`
Compression string `json:"compression" validate:"omitempty"`
VM string `json:"vm" validate:"omitempty"`
Expand Down Expand Up @@ -162,7 +162,7 @@ type updateRollupRequest struct {
Bridge string `json:"bridge" validate:"omitempty,eth_addr"`
Explorer string `json:"explorer" validate:"omitempty,url"`
Stack string `json:"stack" validate:"omitempty"`
Category string `json:"category" validate:"omitempty,oneof=nft gaming finance uncategorized"`
Category string `json:"category" validate:"omitempty,category"`
Type string `json:"type" validate:"omitempty,oneof=settled sovereign"`
Compression string `json:"compression" validate:"omitempty"`
Provider string `json:"provider" validate:"omitempty"`
Expand Down

0 comments on commit d9db762

Please sign in to comment.