Skip to content

Commit

Permalink
branch validation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 23, 2024
1 parent f50bdf7 commit bdbd0d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/pkg/badge_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewBadgeHandler() *BadgeHandler {
type BadgeRequest struct {
Org string `json:"org" query:"org" validate:"required,ascii,excludes=/" message:"org is required"`
Repo string `json:"repo" query:"repo" validate:"required,ascii,excludes=/" message:"repo is required"`
Branch string `json:"branch" query:"branch" validate:"required,ascii,excludes=/" message:"ascii branch is required"`
Branch string `json:"branch" query:"branch" validate:"required,ascii" message:"ascii branch is required"`
Type string `json:"type" query:"type" validate:"ascii,required,excludes=/" message:"ascii type is required"`
}

Expand Down
2 changes: 1 addition & 1 deletion app/pkg/readme_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func NewReadmeHandler() *ReadmeHandler {
type ReadmeRequest struct {
Org string `json:"org" query:"org" validate:"required,ascii,excludes=/" message:"org is required"`
Repo string `json:"repo" query:"repo" validate:"required,ascii,excludes=/" message:"repo is required"`
Branch string `json:"branch" query:"branch" validate:"ascii,excludes=/" message:"ascii branch is required"`
Branch string `json:"branch" query:"branch" validate:"ascii" message:"ascii branch is required"`
User string `json:"user" query:"user" validate:"ascii,excludes=/" message:"ascii user is required"`

host string
Expand Down

0 comments on commit bdbd0d1

Please sign in to comment.