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
the one in _swaggerPaths should treat the values as monoids and merge them.
PathItem should merge, but overwrites.
the on in _operationResponses (inside the Responses type) should overwrite. oh, and actually does. good.
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.
The text was updated successfully, but these errors were encountered:
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?
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.
for instance:
_swaggerPaths
should treat the values as monoids and merge them.PathItem
should merge, but overwrites._operationResponses
(inside theResponses
type) should overwrite. oh, and actually does. good.proposed solution:
wrap InsOrdHashMap types in newtypes and give them individual instances. to be more specific, add
newtype Merging a = Merging a
andnewtype Overwriting a = Overwriting a
, and give instances for some concretea
as needed.The text was updated successfully, but these errors were encountered: