Skip to content

Documentation #4

Description

@dredozubov

Help needed

Activity

  1. sboosali commented on Jan 22, 2018

    @sboosali

    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?

  2. sboosali commented on Jan 22, 2018

    @sboosali

    We could port their examples, like http://json-schema.org/example2.html

  3. dredozubov commented on Jan 23, 2018

    @dredozubov
    ContributorAuthor

    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.

    We could port their examples, like http://json-schema.org/example2.html

    I like the idea! Would you care to open a PR with it?

  4. sboosali commented on Jan 23, 2018

    @sboosali

    Oh, it wraps hjsonschema, that makes sense.

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

  5. dredozubov commented on Jan 24, 2018

    @dredozubov
    ContributorAuthor

    I've created a separate ticket for documenting json-schema related functionality: #7
    Let's continue this discussion there.

  6. added a commit that references this issue on Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions