Skip to content

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

@bergmark

Description

@bergmark

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions