You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can help, but where is the export function? i.e.
export :: JsonRepr x -> ByteString
Data.Schematic.JsonSchema has a deadlink, does Schema have a ToJson itself?
@sboosali If you're asking about serializing exported json-schema itself, then it uses Schema type from hjsonschema package to store the schema, you can use it for serialization as is.
If you're asking about schematized json values, then you're looking for JsonRepr schema. It has ToJSON and FromJSON instances as well.
Yeah, I can do a PR, but skimming through example and this package yesterday, I thought I noticed something missing; maybe just because draft 7 of json schema added something (I might be wrong, I'll double check, I'll get back to you soon).
Either way, if Example 2 doesn't work, I'll be happy to port the first example or something similar (I'm still new to json schema myself).
Help needed