-
Notifications
You must be signed in to change notification settings - Fork 97
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
Fix orderbook openapi scheme #1208
Conversation
Wow, Thanks! |
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.
To prevent discrepancies into the API and swagger, would it be a good idea to auto-generate the swaggers using a Macro?
It would be nice to generate the rust code for using and serving the API from the openapi spec, yes. I'm not aware of a tool that can do this. But it's been a while since we checked that. |
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.
I'm surprised the missing type
s weren't found by our openapi linter.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
In case it helps https://github.com/GREsau/okapi Also https://lib.rs/crates/utoipa-gen
|
I have read the CLA Document and I hereby sign the CLA |
recheck |
Fixes cowprotocol/cowswap#2045
To avoid code duplication and have one source of truth we decided to generate typescript code based on Swagger scheme:
cowprotocol/cow-sdk#97
This PR levels out contradictions between the openapi scheme and the implementation.