GetShopTV / swagger2

Swagger 2.0 data model.
http://hackage.haskell.org/package/swagger2
BSD 3-Clause "New" or "Revised" License
74 stars 59 forks source link

Add ToSchema1/2 to complement aeson-1 ToJSON1/2 #79

Open phadej opened 8 years ago

phadej commented 8 years ago

Example implementation https://github.com/futurice/haskell-futurice-prelude/pull/49/commits/3c30b31b5a165d33d0a94b4afa11a3e61a195df9

I can make a PR if there are no objections.

fizruk commented 8 years ago

No objection, except we also probably need To/FromSchemaKey.

phadej commented 8 years ago

that's true, but I'll rather have it in different PR

fizruk commented 8 years ago

I would probably like (someone) to start with that other PR then :)

phadej commented 8 years ago

I'll assign this to myself, so I remember to write this PR at some point.

fizruk commented 6 years ago

@phadej I think there's going to be some new language extension that will eliminate the need in ToSchemaN classes... but I can't remember where I saw it 🤔

phadej commented 6 years ago

on twitter. But it will be only in GHC-8.6 the earliest, so don't hold your breath.

fizruk commented 6 years ago

@phadej can you tell me what the extension is called? :)

Also, I guess you and me won't have time for this issue until GHC 8.6 anyway...

phadej commented 6 years ago

QuantifiedContexts