We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fix the generated OpenAPI spec.
pocket-core (Morse) has a really nice OpenAPI spec that I like to link to: https://editor.swagger.io/?url=https://raw.githubusercontent.com/pokt-network/pocket-core/staging/doc/specs/rpc-spec.yaml
pocket-core
It would be helpful to have an easily accessible swagger populated by the spec in Shannon as well.
If make ignite_openapi_gen is run on main, the resulting openapi.yml file is:
make ignite_openapi_gen
main
openapi.yml
{ "id": "github.com/pokt-network/poktroll", "consumes": ["application/json"], "produces": ["application/json"], "swagger": "2.0", "info": { "description": "Chain github.com/pokt-network/poktroll REST API", "title": "HTTP API Console", "contact": { "name": "github.com/pokt-network/poktroll" }, "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" }, }, }, }, }
In order to fix it, we need:
git reset --hard acd7fc8a60f44a05a117050c441609361dd608d3
staking_fee
proto/poktroll/supplier/params.proto
openapi.json
README
docusaurus/README
Creator: @Olshansk Co-Owners: @bryanchriswhite
The text was updated successfully, but these errors were encountered:
bryanchriswhite
No branches or pull requests
Objective
Fix the generated OpenAPI spec.
Origin Document
Background
pocket-core
(Morse) has a really nice OpenAPI spec that I like to link to: https://editor.swagger.io/?url=https://raw.githubusercontent.com/pokt-network/pocket-core/staging/doc/specs/rpc-spec.yamlIt would be helpful to have an easily accessible swagger populated by the spec in Shannon as well.
Bug
If
make ignite_openapi_gen
is run onmain
, the resultingopenapi.yml
file is:In order to fix it, we need:
git reset --hard acd7fc8a60f44a05a117050c441609361dd608d3
staking_fee
inproto/poktroll/supplier/params.proto
make ignite_openapi_gen
Goals
main
related to generated the specDeliverables
openapi.yml
in the code withopenapi.json
(it was incorrect)README
anddocusaurus/README
Creator: @Olshansk
Co-Owners: @bryanchriswhite
The text was updated successfully, but these errors were encountered: