File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ Types of changes
21
21
- ` Added ` loading screen when JS is loading on PIMO Play website
22
22
- ` Added ` loading spinner when refreshing output on PIMO Play website
23
23
- ` Added ` a refresh button on PIMO Play website
24
+ - ` Fixed ` jsonschema for ` randomDecimal ` and ` randomDuration ` masks
24
25
25
26
## [ 1.13.0]
26
27
Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ type WeightedChoiceType struct {
92
92
}
93
93
94
94
type RandomDurationType struct {
95
- Min string `jsonschema_description:"Lower bound of the duration range (ISO 8601 notation)"`
96
- Max string `jsonschema_description:"Higher bound of the duration range (ISO 8601 notation)"`
95
+ Min string `yaml:"min" jsonschema_description:"Lower bound of the duration range (ISO 8601 notation)"`
96
+ Max string `yaml:"max" jsonschema_description:"Higher bound of the duration range (ISO 8601 notation)"`
97
97
}
98
98
99
99
type RandomDecimalType struct {
100
- Min float64 `jsonschema_description:"Lower bound of the decimal range"`
101
- Max float64 `jsonschema_description:"Lower bound of the decimal range"`
102
- Precision int `jsonschema_description:"Precision of the generated value"`
100
+ Min float64 `yaml:"min" jsonschema_description:"Lower bound of the decimal range"`
101
+ Max float64 `yaml:"max" jsonschema_description:"Lower bound of the decimal range"`
102
+ Precision int `yaml:"precision" jsonschema_description:"Precision of the generated value"`
103
103
}
104
104
105
105
type DateParserType struct {
Original file line number Diff line number Diff line change 638
638
},
639
639
"RandomDecimalType" : {
640
640
"properties" : {
641
- "Min " : {
641
+ "min " : {
642
642
"type" : " number" ,
643
643
"description" : " Lower bound of the decimal range"
644
644
},
645
- "Max " : {
645
+ "max " : {
646
646
"type" : " number" ,
647
647
"description" : " Lower bound of the decimal range"
648
648
},
649
- "Precision " : {
649
+ "precision " : {
650
650
"type" : " integer" ,
651
651
"description" : " Precision of the generated value"
652
652
}
653
653
},
654
654
"additionalProperties" : false ,
655
655
"type" : " object" ,
656
656
"required" : [
657
- " Min " ,
658
- " Max " ,
659
- " Precision "
657
+ " min " ,
658
+ " max " ,
659
+ " precision "
660
660
]
661
661
},
662
662
"RandomDurationType" : {
663
663
"properties" : {
664
- "Min " : {
664
+ "min " : {
665
665
"type" : " string" ,
666
666
"description" : " Lower bound of the duration range (ISO 8601 notation)"
667
667
},
668
- "Max " : {
668
+ "max " : {
669
669
"type" : " string" ,
670
670
"description" : " Higher bound of the duration range (ISO 8601 notation)"
671
671
}
672
672
},
673
673
"additionalProperties" : false ,
674
674
"type" : " object" ,
675
675
"required" : [
676
- " Min " ,
677
- " Max "
676
+ " min " ,
677
+ " max "
678
678
]
679
679
},
680
680
"SeedType" : {
You can’t perform that action at this time.
0 commit comments