osprey-mock-service
osprey-mock-service copied to clipboard
Implement dynamically generated data
We could be generating random data based on the JSON schema, XML schema, etc. defined limitations. It could try to infer the type of data based on the field name, or be offered an extra option to specify type from supported (E.g. name
, lastName
, address
, etc.). This should be pulled out into a more general module for use in many other utilities (automated tests, for one).
That'd be awesome. Is this project still kicking and is this issue something you're still interested in?
I no longer work on RAML/Osprey myself, but it's still a very interesting topic. See https://github.com/Marak/faker.js/issues/278 for some thoughts I had (very high level, IIRC).
Ha! I was just about to post a link to Faker, but then came across this which sounds even better:
https://github.com/danibram/mocker-data-generator/
That still sounds really interesting. Wonder how we could handle RAML data types though. @jstoiko I am thinking about using ramldt2jsonschema project for it. What do you think?