osprey-mock-service icon indicating copy to clipboard operation
osprey-mock-service copied to clipboard

Implement dynamically generated data

Open blakeembrey opened this issue 8 years ago • 4 comments

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

blakeembrey avatar Aug 19 '15 17:08 blakeembrey

That'd be awesome. Is this project still kicking and is this issue something you're still interested in?

YoungElPaso avatar Dec 07 '16 19:12 YoungElPaso

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

blakeembrey avatar Dec 07 '16 19:12 blakeembrey

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/

YoungElPaso avatar Dec 07 '16 19:12 YoungElPaso

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?

sichvoge avatar Aug 14 '17 18:08 sichvoge