shuttle-hq/synth

Cannot define reserved keys in schema

siddharth23 opened this issue · 0 comments

Describe the bug
Cannot define rate key in schema if not in poisson

To Reproduce
Want to define a field in schema named "rate" like below-
"rate": {
"type": "number",
"constant": 0,
"subtype": "u64"
},
but when generating the data it gives below error-
Caused by:
0: at file resources\scenariosSchema\suites.json
1: Failed to parse collection
2: rate is expected to be a field of poisson


Expected behavior
The rate field should only be considered if defined inside poison object else it should be treated as a normal field
Picture1

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Windows 11 Business