A ts client of kupo
Grab the yaml from kupo
pnpm run update-schema
Manually patch the following:
- Delete superfluous
["properties"]
picked up by LSP - In paths, edit variables from kebab to snake case. For example:
datum-hash => datum_hash
script-hash => script_hash
slot-no => slot_no
spent
andunspent
have typeboolean
notstring
(see CardanoSolutions/kupo#179)
- openapi zod generator using zodios had
void()
type for all returns. Switched back to openapi-typescript - node-ts seems to broke with node version > 20.
Switched to
tsx
. - middleware needed to fix some disagreement between openapi-fetch and kupo