Skip to content

Commit

Permalink
working test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sly1029 committed Dec 10, 2024
1 parent 2b450d7 commit d3118a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (config *InboundProxyConfig) validateGitHubGraphQLRequest(body []byte, filt
}

type GitHubGraphQLFilter struct {
AllowedOperations map[string][]string `validate:"omitempty"` // map[operationType][]operationName
AllowedOperations map[string][]string `validate:"required"` // map[operationType][]operationName
}
type AllowlistItem struct {
URL string `mapstructure:"url" json:"url"`
Expand All @@ -258,7 +258,7 @@ type AllowlistItem struct {
LogRequestHeaders bool `mapstructure:"logRequestHeaders" json:"logRequestHeaders"`
LogResponseBody bool `mapstructure:"logResponseBody" json:"logResponseBody"`
LogResponseHeaders bool `mapstructure:"logResponseHeaders" json:"logResponseHeaders"`
GitHubGraphQL *GitHubGraphQLFilter `validate:"omitempty"`
GitHubGraphQL *GitHubGraphQLFilter `mapstructure:"githubGraphQL" json:"githubGraphQL"`
}

type Allowlist []AllowlistItem
Expand Down

0 comments on commit d3118a7

Please sign in to comment.