stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 671 forks source link

fix: OpenAPI validation #5160

Closed aldur closed 2 months ago

aldur commented 2 months ago

Description

While I was poking around the RPC endpoints, I noticed that:

  1. We do not currently lint/validate the OpenAPI definition.
  2. As a result, it was broken.
  3. Plus, it included endpoints that were previously removed and/or changed path (v2 to v3). This is a known issue, see Applicable issues below.

This PR takes a small step into improving things, by:

Applicable issues

Checklist

Manually lint as follows:

npx @redocly/cli@1.25.0 lint --extends minimal docs/rpc/openapi.yaml

Then try generating the HTML:

npx @redocly/cli@1.25.0 build-docs -o /tmp/open-api-docs.html ./docs/rpc/openapi.yaml
wileyj commented 2 months ago

~this contains some changes from the 2.5.0.0.7 branch. can you rebase from that branch? target to develop is fine (after release, a PR is opened from release branch back to develop ).~

~the latest release branch is release/2.5.0.0.7~

disregard, it's the signer branch - we can deal with any conflicts later

blockstack-devops commented 3 weeks ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.