-
Notifications
You must be signed in to change notification settings - Fork 568
refactor: add default openapi.yml
when skipping proto gen
#4596
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
Conversation
3aaf432
to
2175512
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have steps to reproduce?
Using --no-module
generates an openapi.yml to me:
{
"id": "gm",
"consumes": ["application/json"],
"produces": ["application/json"],
"swagger": "2.0",
"info":
{
"description": "Chain gm REST API",
"title": "HTTP API Console",
"contact": { "name": "gm" },
"version": "version not set",
},
"paths": {},
"definitions":
{
"google.protobuf.Any":
{
"type": "object",
"properties": { "@type": { "type": "string" } },
"additionalProperties": {},
},
"google.rpc.Status":
{
"type": "object",
"properties":
{
"code": { "type": "integer", "format": "int32" },
"details":
{
"type": "array",
"items":
{
"type": "object",
"$ref": "#/definitions/google.protobuf.Any",
},
},
"message": { "type": "string" },
},
},
},
}
I see it failing in the two other PRs you have in CI, but when i try locally from HEAD of main, or run |
weird, it is falling locally here as well. try to run the |
openapi.yml
static docopenapi.yml
when skipping proto gen
If you scaffold a chain without a module, the
openapi.yml
file will not be generated, and the chain will be broken because this file is embedded into the codecli/ignite/templates/app/files/docs/docs.go.plush
Lines 17 to 18 in 29b4442