Skip to content
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

Derive schemas based on json instance structure rather than assume it's the same as the generic-aeson representation #7

Open
bergmark opened this issue Jul 7, 2014 · 0 comments

Comments

@bergmark
Copy link
Member

bergmark commented Jul 7, 2014

This is a bigger project, I talked a bit to @MedeaMelana about using JsonGrammar which has an internal representation of conversions that we can use if the modules are exposed.

So we could implement this separately in json-schema for starters, just another function like gSchema that uses the JsonGrammar representation to make a schema.

As a second step we may want to look in to using JsonGrammar for generic-aeson, it means we'd lose the ability to just have one of the To/FromJSON instances but in practice it's fairly uncommon that you can only write one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant