for instance:
- 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.
for instance:
_swaggerPathsshould treat the values as monoids and merge them.PathItemshould merge, but overwrites._operationResponses(inside theResponsestype) 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 aandnewtype Overwriting a = Overwriting a, and give instances for some concreteaas needed.