@@ -978,8 +978,7 @@ instance ToJSON ParamOtherSchema where
978 toJSON = genericToJSONWithSub "paramSchema" (jsonPrefix "paramOtherSchema")
978 toJSON = genericToJSONWithSub "paramSchema" (jsonPrefix "paramOtherSchema")
980instance ToJSON Responses where
980instance ToJSON Responses where
981− toJSON (Responses def rs) = omitEmpties $
981+ toJSON = omitEmpties . genericToJSONWithSub "responses" (jsonPrefix "responses")
982− toJSON (InsOrdHashMap.mapKeys show rs) <+> object [ "default" .= def ]
984instance ToJSON Response where
983instance ToJSON Response where
985 toJSON = omitEmpties . genericToJSON (jsonPrefix "response")
984 toJSON = omitEmpties . genericToJSON (jsonPrefix "response")