-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate crashes with Empty enum msg #27
Comments
Thanks for reporting! Will get this ASAP tracking here https://github.com/CosmWasm/cosmwasm-typescript-gen/tree/fix/empty-enums |
ok, so I've discovered this is an error in a dependency. Will be pushing upstream. |
Until either they fix the issue or we write our own processor (#7), It looks like we can delete the empty enums, or potentially look for these and pre-process JSON schema files and potentially see what modifications we need to make. A temporary solution: {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"type": "string",
"enum": []
} will compile with a change to {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"type": "string"
} I could look for schemas that have this |
|
Thanks again for the quick fix! |
Having an empty
QueryMsg
enum:https://github.com/DA0-DA0/dao-contracts/pull/370/files#diff-840200e9bacf09b0b4728e7462feae7f2bd9cfbc92ae5d3cfe330c1a47b0ff9cR22
Causes an error when generating the ts files:
https://github.com/DA0-DA0/dao-contracts/runs/7050221031?check_suite_focus=true#step:5:14
The json schema when exporting an empty enum:
The text was updated successfully, but these errors were encountered: