platform
platform copied to clipboard
feat: random documents from jsonschema
Issue being fixed or feature implemented
Adds a method under a feature flag for DocumentType to generate random documents using json-schema-faker-rs solution
What was done?
Since jsonschema taken from DocumentType is not fully defined at one place as a self-contained schema, this PR wraps a json-schema-faker-rs part into manual tweaks to be able to go from json-schema-faker-rs output to an actual Document.
How Has This Been Tested?
There is a test.
Breaking Changes
Checklist:
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have added or updated relevant unit/integration/functional/e2e tests
- [x] I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
- [x] I have made corresponding changes to the documentation if needed
For repository code-owners and collaborators only
- [ ] I have assigned this pull request to a milestone