Test Code:
input = {'$defs': {'OutputModel': {'properties': {'A': {'title': 'A', 'type': 'string'}, 'B': {'title': 'B', 'type': 'string'}}, 'required': ['A', 'B'], 'title': 'OutputModel', 'type': 'object'}}, 'properties': {'result': {'items': {'$ref': '#/$defs/OutputModel'}, 'title': 'Result', 'type': 'array'}}, 'required': ['result'], 'title': 'queryOutput', 'type': 'object'}
fake_generator = JSF(input)
example_data = fake_generator.generate()
print(example_data)
Result:
root@zzz:/home/zzz# python tt.py
{'result': []}
root@zzz:/home/zzz# python tt.py
{'result': [{'A': 'Enim molestias, architecto ipsum vitae', 'B': 'dolor'}, {'A': 'reprehenderit repellendus adipisicing Lorem amet a', 'B': 'ipsum architecto ut'}, {'A': 'tellus. esse esse', 'B': 'vitae dui vitae architecto'}]}
I find no parameters to limit jsf to generated one item for array at least.
Test Code:
Result:
I find no parameters to limit
jsfto generated one item for array at least.