hyperweb-io / hyperweb-io/ts-codegen

codegen errors for query case without parameters

Aperta
#64 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
126
Fork
31
Merge medio
19m
PR unite (30g)
2

Descrizione

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
},
...
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.