Skip to content

Commit 2852e78

Browse files
committed
Fix json serialisation for RepositoryName fields
RulesetRepositoryNamesConditionParameters Include and Exclude shall not be omitted
1 parent 5ab57e7 commit 2852e78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/repos_rules.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ type RulesetRefConditionParameters struct {
3838

3939
// RulesetRepositoryNamesConditionParameters represents the conditions object for repository_names.
4040
type RulesetRepositoryNamesConditionParameters struct {
41-
Include []string `json:"include,omitempty"`
42-
Exclude []string `json:"exclude,omitempty"`
41+
Include []string `json:"include"`
42+
Exclude []string `json:"exclude"`
4343
Protected *bool `json:"protected,omitempty"`
4444
}
4545

0 commit comments

Comments
 (0)