-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data generation with schema #103
Comments
Thanks for your interest in contributing. Yep, it's still planned. We have some prototypes in the works, (cc @davegolland ) and there are also some third-party things being worked on as well -- discussion here: We don't have a concrete time frame for finishing it yet though, so it might be a little while without help. I think our current thoughts and such are collected at that link, and if you're interested in taking a crack at fleshing out what we have we can expose what we have as an experimental thing for now. Let me know what you think. |
I’ll try to recap here the discussion:
Is my summary correct enough? |
There is also a small gist where I tried to make some of the schemas most frequently used inside Prismatic (namely vectors and maps with required and optional keys) generative: |
That seems right . The main thing that's not reflected is this:
Like I said there, I'm not sure how it will work, but I think it'll be an On Sat, Jun 7, 2014 at 9:32 AM, Dave Golland [email protected]
|
Sorry for not responding to this thread sooner, but I finally made a few updates with a lot of @davegolland's code :) and multimethods => https://github.com/zeeshanlakhani/schema-gen. In terms of the injection of constraints/hints into the generation process, we are doing something like this for a project at the company I work for, but it's--currently--pretty-darn specific to our data and testing needs. I hope to have more time to explore such a solution, or, at least, help @w01fe and @davegolland work on it :). Nonetheless, I'm mostly putting the schema-gen stuff into a specific repo for anyone who wants to collaborate or whatnot. |
Awesome, thanks for the update! I've been thinking about this a bit and On Wed, Jul 9, 2014 at 3:23 AM, Zeeshan Lakhani [email protected]
|
I’ve made some progress with predicates. I hope to post a gist in the next few days in order to discuss it or scratch it, if you will. HTH |
Sweet, look forward to checking it out! On Mon, Jul 14, 2014 at 11:54 PM, giorgio-v [email protected]
|
@giorgio-v looking forward to it as well. |
Here’s the gist: https://gist.github.com/giorgio-v/cd4025963581ec3e0a12 Basically I’ve started from Dave’s one and extended it to cover as many case as possible. Know issues:
HTH |
Any news on this? |
Not yet, sorry. I did some initial investigation of what it would look like to break up the schema protocol further, which would enable generation without so much custom code (and make constraint injection easier) but haven't found anything satisfactory yet. |
I see. Let me know if I can help on this in some way. Thanks a lot. |
1.0.0 includes experimental generation support, would love your feedback on that! Please open a new issue if it doesn't meet your needs. |
In the readme you said that you want to provide the ability to generate data from a given schema.
Since I will need a feature like this in the near future I’d like to know if this is still a planned feature and, if so, whether or not you’d like to discuss its design here.
I’m willing to contribute some effort and spare time to implement this.
TIA
The text was updated successfully, but these errors were encountered: