json-schema-faker-cli
json-schema-faker-cli copied to clipboard
Option sortProperties: false reverses original order
When I add sortProperties: false
to the options.js file, the original order is reversed, see example below. The option sortProperties: true
works as intended and sorts all properties.
example json schema:
{ "type": "object", "required": [], "properties": { "first": { "type": "string" }, "second": { "type": "string" }, "third": { "type": "string" } } }
example output
{"third":"sint","second":"aliquip","first":"ad"}
I don't have enough time to check that but if that happens, it seems to be a bug in json-schema-faker.
https://github.com/json-schema-faker/json-schema-faker/blob/771eee7228f27eb8d914aa03e431bd69ab1bc468/docs/README.md#available-options