Skip to content
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

Merged
merged 5 commits into from Feb 19, 2019
Merged

Conversation

mnaichuk
Copy link
Member

No description provided.

@mnaichuk mnaichuk changed the base branch from master to feature/new-errors February 18, 2019 16:23
@mnaichuk mnaichuk force-pushed the feature/new-errors-errorsmd branch 2 times, most recently from b6c77a7 to fbbefd8 Compare February 18, 2019 16:27
Copy link

@ysv ysv left a 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

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated

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.

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

account.withdraw.disabled_api

@mnaichuk mnaichuk force-pushed the feature/new-errors-errorsmd branch 2 times, most recently from f137cdb to b24fc3b Compare February 18, 2019 16:50
@shal shal force-pushed the feature/new-errors-errorsmd branch from 33f7708 to 7f82ee9 Compare February 19, 2019 14:56
@ysv ysv merged commit ff3343d into openware:feature/new-errors Feb 19, 2019
ysv pushed a commit that referenced this pull request Feb 20, 2019
* Add errors.md, code polishing

* Updates some errors desc

* Update spec

* Make errors human readable & Pretiffy markdown

* Update errors.md desc
ysv pushed a commit that referenced this pull request Feb 20, 2019
ysv pushed a commit that referenced this pull request Feb 20, 2019
- 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>
mod pushed a commit that referenced this pull request Feb 20, 2019
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants