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 YAML spec validation checks for Payment transaction #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shared/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ components:
currency:
type: string
description: 'Arbitrary currency code for the token. Cannot be XRP.'
pattern: '^[a-z]{3}$'
value:
type: string
pattern: '^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$'
Expand Down
3 changes: 3 additions & 0 deletions shared/requests/account_lines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ components:
limit:
type: integer
description: (Optional) Limit the number of trust lines to retrieve. Must be within the inclusive range 10 to 400. Default is 200.
minimum: 10
maximum: 400
default: 200
marker:
type: object
description: (Optional) Value from a previous paginated response. Resume retrieving data where that response left off.
Expand Down
1 change: 1 addition & 0 deletions shared/requests/ledger_entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ components:
binary:
type: boolean
description: (Optional) If true, return the requested ledger entry's contents as a hex string in the XRP Ledger's binary format. Otherwise, return data in JSON format. The default is false.
default: false
include_deleted:
type: boolean
description: (Optional, Clio servers only) If set to true and the queried object has been deleted, return its complete data as it was prior to its deletion. If set to false or not provided, and the queried object has been deleted, return objectNotFound (current behavior).
Expand Down
2 changes: 2 additions & 0 deletions shared/requests/submit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ components:
fail_hard:
type: boolean
description: 'If true, and the transaction fails locally, do not retry or relay the transaction to other servers. Default is false.'
default: false
required:
- tx_blob

Expand All @@ -45,6 +46,7 @@ components:
fail_hard:
type: boolean
description: '(Optional) If true, and the transaction fails locally, do not retry or relay the transaction to other servers. Default is false. Updated in: rippled 1.5.0'
default: false
offline:
type: boolean
description: '(Optional) If true, when constructing the transaction, do not try to automatically fill in or validate values. Default is false.'
Expand Down
1 change: 1 addition & 0 deletions shared/transactions/payment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ components:
InvoiceID:
type: string
description: '(Optional) Arbitrary 256-bit hash representing a specific reason or identifier for this payment.'
maxLength: 256
Paths:
type: array
items:
Expand Down
Loading