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
Add errors.md #2080
Add errors.md #2080
Conversation
b6c77a7
to
fbbefd8
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.
First of all check for duplicates
docs/api/errors.md
Outdated
account.deposit.invalid_state Deposit invalid state | ||
account.deposit.non_integer_limit Value you send could not be parsed into Integer type | ||
account.deposit.invalid_limit Invalid limit | ||
account.deposit.non_integer_limit Limit value you send could not be parsed into Integer type |
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.
duplicated
docs/api/errors.md
Outdated
account.deposit_address.invalid_address_format Invalid deposit address format | ||
account.deposit_address.doesnt_support_cash_address_format Currency doesn't support cash address format | ||
account.currency.doesnt_exist Currency doesn't exist | ||
account.withdraw.non_integer_limit Limit Value you send could not be parsed into Integer type |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
docs/api/errors.md
Outdated
account.withdraw.invalid_amount Invalid withdraw amount | ||
account.withdraw.create_error Failed to create withdraw | ||
account.withdraw.invalid_otp Invalid otp | ||
withdraw.status.disabled Withdrawal API is disabled |
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.
account.withdraw.disabled_api
f137cdb
to
b24fc3b
Compare
b24fc3b
to
9628d38
Compare
33f7708
to
7f82ee9
Compare
* Add errors.md, code polishing * Updates some errors desc * Update spec * Make errors human readable & Pretiffy markdown * Update errors.md desc
- Move all REST API errors to single structure `{errors: []}` - Detailed description for order & withdraw POST failures - Add missing values validations - Add missing allow_blank validations - Add custom errors message for: - values validations - types validations - allow_blank validations - presence validations - custom validations - Add errors.md with errors list & description - Remove DB queries from desc - Remove API::V2::Error and descendants - Update ExceptionHandlers - Move NamedParams to /market - Add Order::InsufficientMarketLiquidity - include_api_error rspec matcher Co-authored-by: Yaroslav Savchuk <ysavchuk@heliostech.fr> Co-authored-by: Maksim Naichuk <mnaichuk@heliostech.fr> Co-authored-by: Ali Shanaakh <ashanaakh@heliostech.fr>
* Unify API errors for api/v2/market/* (#2058) * Unify API errors for api/v2/account/* and api/v2/public/* (#2063) * Add errors.md with list of Member API errors (#2080) - Move all REST API errors to single structure `{errors: []}` - Detailed description for order & withdraw POST failures - Add missing values validations - Add missing allow_blank validations - Add custom errors message for: - values validations - types validations - allow_blank validations - presence validations - custom validations - Add errors.md with errors list & description - Remove DB queries from desc - Remove API::V2::Error and descendants - Update ExceptionHandlers - Move NamedParams to /market - Add Order::InsufficientMarketLiquidity - include_api_error rspec matcher Co-authored-by: Yaroslav Savchuk <ysavchuk@heliostech.fr> Co-authored-by: Maksim Naichuk <mnaichuk@heliostech.fr> Co-authored-by: Ali Shanaakh <ashanaakh@heliostech.fr>
No description provided.