shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.36k stars 105 forks source link

Cannot define reserved keys in schema #426

Open siddharth23 opened 1 year ago

siddharth23 commented 1 year ago

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):