Skip to content

Commit

Permalink
fix: BaseRequest order and add some missing description (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdp2121 authored Sep 26, 2024
1 parent b65138a commit 058bd46
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions shared/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ components:

CurrencyAmount:
$id: CurrencyAmount
description: >
A CurrencyAmount is an object specifying a currency, a quantity of that currency, and the
counterparty (issuer) on the trustline that holds the value. For XRP, there is no counterparty.
oneOf:
- type: string
description: 'The amount of XRP (drops), represented as a string.'
Expand All @@ -202,6 +205,7 @@ components:
TokenAmount:
$id: TokenAmount
type: object
description: Specifies an amount of a (fungible) token.
properties:
currency:
type: string
Expand Down
2 changes: 1 addition & 1 deletion shared/requests/account_channels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ components:
Returns an AccountChannelsResponse.
type: object
allOf:
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
- $ref: '../base.yaml#/components/schemas/BaseRequest'
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
properties:
account:
type: string
Expand Down
3 changes: 2 additions & 1 deletion shared/requests/account_info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ components:
Returns an AccountInfoResponse
type: object
allOf:
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
- $ref: '../base.yaml#/components/schemas/BaseRequest'
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
properties:
account:
type: string
Expand All @@ -26,6 +26,7 @@ components:

AccountRoot:
type: object
description: An AccountRoot ledger entry type describes a single account, its settings, and XRP balance.
properties:
Account:
type: string
Expand Down
2 changes: 1 addition & 1 deletion shared/requests/account_lines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ components:
Returns an AccountLinesResponse
type: object
allOf:
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
- $ref: '../base.yaml#/components/schemas/BaseRequest'
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
properties:
account:
type: string
Expand Down
2 changes: 1 addition & 1 deletion shared/requests/ledger_entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ components:
description: The ledger_entry method returns a single ledger entry from the XRP Ledger in its raw format. All information retrieved is relative to a particular version of the ledger.
type: object
allOf:
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
- $ref: '../base.yaml#/components/schemas/BaseRequest'
- $ref: '../base.yaml#/components/schemas/LookupByLedgerRequest'
- $ref: '#/components/schemas/BaseLedgerEntryRequest'
- $ref: '#/components/schemas/LedgerEntryRequestOptions'

Expand Down
1 change: 1 addition & 0 deletions shared/transactions/payment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ components:

PathStep:
$id: PathStep
description: A PathStep represents an individual step along a Path.
type: object
properties:
account:
Expand Down

0 comments on commit 058bd46

Please sign in to comment.