hyperweb-io / hyperweb-io/ts-codegen

codegen errors for query case without parameters

Open
#64 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
126
Forks
31
Avg merge
19m
Merged PRs (30d)
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
},
...
```

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.