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
after applying the patch at the end and running cabal test -w ghc-9.10.1 --allow-newer, I get this error:
/home/janus/flipstone/swagger2/src/Data/Swagger.hs:298: failure in expression `instance ToSchema BadMixedType'
expected: ...
... • Cannot derive Generic-based Swagger Schema for BadMixedType
... BadMixedType is a mixed sum type (has both unit and non-unit constructors).
... Swagger does not have a good representation for these types.
... Use genericDeclareNamedSchemaUnrestricted if you want to derive schema
... that matches aeson's Generic-based toJSON,
... but that's not supported by some Swagger tools.
...
... In the instance declaration for ‘ToSchema BadMixedType’
but got: <interactive>:166:10: error: [GHC-64725]
^
• Cannot derive Generic-based Swagger Schema for BadMixedType
BadMixedType is a mixed sum type (has both unit and non-unit constructors).
Swagger does not have a good representation for these types.
Use genericDeclareNamedSchemaUnrestricted if you want to derive schema
that matches aeson's Generic-based toJSON,
but that's not supported by some Swagger tools.
• In the expression:
Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @(BadMixedType)
In an equation for ‘declareNamedSchema’:
declareNamedSchema
= Data.Swagger.Internal.Schema.$dmdeclareNamedSchema
@(BadMixedType)
In the instance declaration for ‘ToSchema BadMixedType’
after applying the patch at the end and running
cabal test -w ghc-9.10.1 --allow-newer
, I get this error:The text was updated successfully, but these errors were encountered: