Skip to content

Commit

Permalink
fix: use selection_rule in plan mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Okhelifi committed Nov 19, 2024
1 parent ab5dc09 commit 5730821
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/model/api/v2/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Plan struct {
Api *string `json:"api,omitempty"`
// Plan selection rule
// +kubebuilder:validation:Optional
SelectionRule *string `json:"selectionRule,omitempty"`
SelectionRule *string `json:"selection_rule,omitempty"`
// List of different flows for this Plan
// +kubebuilder:validation:Optional
Flows []Flow `json:"flows"`
Expand Down
2 changes: 1 addition & 1 deletion docs/api/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ that has been promoted between different environments.<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>selectionRule</b></td>
<td><b>selection_rule</b></td>
<td>string</td>
<td>
Plan selection rule<br/>
Expand Down
2 changes: 1 addition & 1 deletion helm/gko/crds/gravitee.io_apidefinitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ spec:
securityDefinition:
description: Plan Security definition
type: string
selectionRule:
selection_rule:
description: Plan selection rule
type: string
status:
Expand Down

0 comments on commit 5730821

Please sign in to comment.