-
Notifications
You must be signed in to change notification settings - Fork 214
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
Revise swagger API documentation of TxMetadata #2157
Conversation
387d551
to
857cee3
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.
Nice.
bors merge |
2157: Revise swagger API documentation of TxMetadata r=KtorZ a=rvl ### Issue Number ADP-307 / #2073 ### Overview Updates swagger documentation according to recent API changes. ### Comments [Rendered](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/input-output-hk/cardano-wallet/rvl/2073/tx-metadata-swagger/specifications/api/swagger.yaml) Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
Build failed:
Perhaps a retry attempt hiding the true error. |
specifications/api/swagger.yaml
Outdated
|
||
The binary encoding of metadata values supports three simple types: | ||
|
||
* Integers in the range `-2^32` to `2^32 - 1`. |
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.
It's 64bit integers. -(2^64 - 1) .. 2^64 - 1
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.
Oops - thanks @dcoutts, sorry for stirring up confusion but...
... just one thing about this range - I know it's simply an artificial limit and nothing to do with machine representation of signed ints. But there are 265 - 1 possible values in this range, which might be unsettling for nerds.
Also there is a function validateTxMetadataValue
in cardano-api which enforces the bounds [-264, 264]. So 265 + 1 possible values. I couldn't find the validation code in the consensus layer or specs.
bors merge |
2157: Revise swagger API documentation of TxMetadata r=KtorZ a=rvl ### Issue Number ADP-307 / #2073 ### Overview Updates swagger documentation according to recent API changes. ### Comments [Rendered](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/input-output-hk/cardano-wallet/rvl/2073/tx-metadata-swagger/specifications/api/swagger.yaml) Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: KtorZ <matthias.benkort@gmail.com>
Build failed: |
bors retry |
Build succeeded: |
Issue Number
ADP-307 / #2073
Overview
Updates swagger documentation according to recent API changes.
Comments
Rendered