File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ Types of changes
14
14
- ` Fixed ` for any bug fixes.
15
15
- ` Security ` in case of vulnerabilities.
16
16
17
+ ## [ 1.9.1]
18
+
19
+ - ` Fixed ` JSON Schema validation for ` masks ` property (only required if ` mask ` is not set).
20
+
17
21
## [ 1.9.0]
18
22
19
23
- ` Added ` possibility to use a template string with ` randomChoiceInUri ` mask
Original file line number Diff line number Diff line change @@ -154,8 +154,8 @@ type MaskType struct {
154
154
155
155
type Masking struct {
156
156
Selector SelectorType `yaml:"selector"`
157
- Mask MaskType `yaml:"mask" jsonschema:"oneof_required=Mask"`
158
- Masks []MaskType `yaml:"masks" jsonschema:"oneof_required=Masks"`
157
+ Mask MaskType `yaml:"mask,omitempty " jsonschema:"oneof_required=Mask"`
158
+ Masks []MaskType `yaml:"masks,omitempty " jsonschema:"oneof_required=Masks"`
159
159
Cache string `yaml:"cache,omitempty"`
160
160
}
161
161
Original file line number Diff line number Diff line change 364
364
},
365
365
"Masking" : {
366
366
"required" : [
367
- " selector" ,
368
- " mask" ,
369
- " masks"
367
+ " selector"
370
368
],
371
369
"properties" : {
372
370
"selector" : {
You can’t perform that action at this time.
0 commit comments