-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Continue documenting grpc.proto for API reference site [#7] #6068
Continue documenting grpc.proto for API reference site [#7] #6068
Conversation
The new console output formatting (tbl) api is working, and the deprecated classes just add maintenance work. Update affected test cases.
Much less ambiguous field value at cost of breaking backward compat in API.
…ring triggerPrice`.
Some minor refactoring included.
Quite a bit of refactoring. A lot of number-string formatting was removed.
Rename double marketPriceMargin -> marketPriceMarginPct. Rename double buyerSecurityDeposit -> buyerSecurityDepositPct.
And validate the opt value.
I think the markdown->html transformation by the slate engine works pretty well, but there are two problems so far.
|
This was overlooked in tests, but client might use a bad offer-id param.
This protobuf definition and service stub has been in place since the start of work on the API, but was never fully implmented, nor intended to be included in the API beta & v1 releases. Its presence added a useless section to the gRPC API Reference doc. https://ghubstan.github.io/slate Based on branch `7-more-grpcproto-comments`, PR bisq-network#6068.
The CLI and apitest cases always pass "0", but java & python clients might pass an empty string. This change avoids number formatting & scaling problems when clients pass an empty string in the price parameter.
The client may have passed an empty string for the price parameter, if only enabling or disabling the offer. If so, validate with new price = old price.
…ter" This reverts commit fcd2bcd.
…an/bisq into 7-more-grpcproto-comments
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.
utACK - Changes are looking fine 👍
This completes a first pass of
grpc.proto
documentation, after some .proto field name and field type changes were made in previous PRs. Comments have not been added topb.proto
defs referenced by the API site, such as all the*PaymentAccount
messages. These may be commented later, but providingCLI
,Java
andPython
code examples for the API reference doc is more important at this time.While still a work in progress, the most recent version of the slate based API Reference document could be checked for correctness, missing detail, and to see if more .proto rpc method and/or field types or names need to be changed.
Based on branch
6-disambiguate-api-pct-field-names
, PR #6065.