Skip to content

Commit

Permalink
Remove enum tag from non-enum field (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronensc authored Aug 30, 2022
1 parent 2233fa5 commit a836246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,7 @@ Following is the supported API format for filter transformations:
remove_entry_if_doesnt_exist: removes the entry if the field doesnt exist
remove_entry_if_equal: removes the entry if the field value equals specified value
remove_entry_if_not_equal: removes the entry if the field value does not equal specified value
value: (enum) specified value of input field:
remove_field: removes the field from the entry
remove_entry_if_exists: removes the entry if the field exists
remove_entry_if_doesnt_exist: removes the entry if the field doesnt exist
remove_entry_if_equal: removes the entry if the field value equals specified value
remove_entry_if_not_equal: removes the entry if the field value does not equal specified value
value: specified value of input field:
</pre>
## Transform Network API
Following is the supported API format for network transformations:
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/transform_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ func TransformFilterOperationName(operation string) string {
type TransformFilterRule struct {
Input string `yaml:"input,omitempty" json:"input,omitempty" doc:"entry input field"`
Type string `yaml:"type,omitempty" json:"type,omitempty" enum:"TransformFilterOperationEnum" doc:"one of the following:"`
Value interface{} `yaml:"value,omitempty" json:"value,omitempty" enum:"TransformFilterOperationEnum" doc:"specified value of input field:"`
Value interface{} `yaml:"value,omitempty" json:"value,omitempty" doc:"specified value of input field:"`
}

0 comments on commit a836246

Please sign in to comment.