Skip to content

Commit 1ba1f09

Browse files
committed
refactor: allow empty path
1 parent 7cf05e0 commit 1ba1f09

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

chart/values.schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3093,10 +3093,7 @@
30933093
}
30943094
},
30953095
"additionalProperties": false,
3096-
"type": "object",
3097-
"required": [
3098-
"path"
3099-
]
3096+
"type": "object"
31003097
},
31013098
"TranslatePatchExpression": {
31023099
"oneOf": [

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ type SyncToHostCustomResourceDefinition struct {
448448

449449
type TranslatePatch struct {
450450
// Path is the path within the patch to target. If the path is not found within the patch, the patch is not applied.
451-
Path string `json:"path,omitempty" jsonschema:"required"`
451+
Path string `json:"path,omitempty"`
452452

453453
// Expression transforms the value according to the given JavaScript expression.
454454
Expression *TranslatePatchExpression `json:"expression,omitempty" jsonschema:"oneof_required=expression"`

0 commit comments

Comments
 (0)