If I have
data Thing1 = I Integer | S String
how do I instantiate
ToSchema for it? Note that deriving doesn't work.
And how about for
data Thing2 = I Integer | S
Cardano Stack Exchange is a question and answer site for users and developers of the Cardano cryptocurrency ecosystem. It only takes a minute to sign up.Sign up to join this community
It's not possible to use Sum types with Swagger, see relevant plutus issue, you need to wait for the following PR adding OpenAPI3 support https://github.com/input-output-hk/plutus/pull/3807