hyperweb-io / hyperweb-io/ts-codegen
codegen errors for query case without parameters
- Langage dominant
- TypeScript
- Étoiles
- 126
- Forks
- 31
- Merge moyen
- 19 min
- PR mergées (30 j)
- 2
Description
related https://github.com/CosmWasm/cosmwasm/issues/1416
example https://github.com/grod220/ts-codegen-example
schema https://gist.github.com/pyramation/97af26385c9348688c74e849898ce419
the generated code that causes an issue (the enum):
```json
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"type": "string",
"enum": [
"accept_ownership"
]
},
{
"description": "Due to some chains being permissioned via governance, we must instantiate this contract first and give ownership access to Rover contract with this action after both are independently deployed.",
"type": "object",
"required": [
"propose_new_owner"
],
"properties": {
"propose_new_owner": {
"type": "object",
"required": [
"new_owner"
],
"properties": {
"new_owner": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
...
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by reviewing the related CosmWasm issue, the ts-codegen-example repository, and the linked schema, then reproduce generation for the shown ExecuteMsg enum. Trace the generated code for the no-parameter query case and confirm that code generation completes without the reported error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100