-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat: add chainhook docs api generate
command
#323
Conversation
Thanks @MicaiahReid! did you fix the spec manually? Asking because I'd like to augment one of the core schema in another PR. |
@lgalabru Yes, sadly I did do this manually. I've started looking into opening a PR to fix these two:
I think that would make the autogenerated schema correct |
chainhook docs api generate
command
components/chainhook-cli/Cargo.toml
Outdated
@@ -38,9 +38,13 @@ atty = "0.2.14" | |||
crossbeam-channel = "0.5.8" | |||
uuid = { version = "1.3.0", features = ["v4", "fast-rng"] } | |||
threadpool = "1.8.1" | |||
rocket_okapi = "0.8.0-rc.3" | |||
rocket_okapi = { version = "0.8.0-rc.3", git = "https://github.com/MicaiahReid/okapi.git", branch = "feat-chainhook-fixes"} |
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.
Could we host the fork under the hirosystems
org?
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.
Why must you thwart my plans for github significance?
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.
Fixed!
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.
Looking great! just a few adjustment on dependencies.
Fixes #251.
I've update
chainhook-openapi.json
, and I've added thechainhook docs api generate
command to regenerate the spec as the api changes.We should update the
chainhook-openapi.json
as part of our deployment process eventually.Also, this introduces us using a fork of
schemars
andokapi
. I've created PRs in this repo so we can hopefully use the stable version again before too long.