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

Monoid instances are wrong #218

Open fisx opened 4 years ago

fisx commented 4 years ago

for instance:

proposed solution:

wrap InsOrdHashMap types in newtypes and give them individual instances. to be more specific, add newtype Merging a = Merging a and newtype Overwriting a = Overwriting a, and give instances for some concrete a as needed.

fisx commented 4 years ago

I'm also not sure about SwaggerMonoid, which differns in very few places, and it's hard to see which those are. Perhaps we can get rid of this somehow as well?

Taneb commented 4 years ago

It looks like the issue with _swaggerPaths has been fixed on GitHub but not yet released (although I haven't tested it). The problem with how operations are merged still stands, though.