Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hledger-api doesn't build with swagger2 2.1.5 #612

Copy link
Copy link

Description

@felixonmars
Issue body actions
[1 of 1] Compiling Main             ( hledger-api.hs, dist/build/hledger-api/hledger-api-tmp/Main.dyn_o )

hledger-api.hs:220:10: error:
    • Cannot derive Generic-based Swagger Schema for Price
      Price 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 @Price
      In an equation for ‘declareNamedSchema’:
          declareNamedSchema
            = Data.Swagger.Internal.Schema.$dmdeclareNamedSchema @Price
      In the instance declaration for ‘ToSchema Price’
    |
220 | instance ToSchema Price
    |          ^^^^^^^^^^^^^^
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.Something wrong, confusing or sub-standard in the software, docs, or user experience.old-apiThe hledger-api tool, deprecated in 2019.The hledger-api tool, deprecated in 2019.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.