-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathschemas.yaml
54 lines (54 loc) · 1.71 KB
/
schemas.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
openapi: 3.1.0
info:
title: Open Payments - Shared schemas
version: '1.0'
license:
name: Apache 2.0
identifier: Apache-2.0
summary: Open Payments - Shared schemas
description: 'Shared schemas used across Open Payments APIs'
contact:
email: tech@interledger.org
components:
schemas:
amount:
title: amount
type: object
properties:
value:
type: string
format: uint64
description: 'The value is an unsigned 64-bit integer amount, represented as a string.'
assetCode:
$ref: '#/components/schemas/assetCode'
assetScale:
$ref: '#/components/schemas/assetScale'
required:
- value
- assetCode
- assetScale
assetCode:
title: Asset code
type: string
description: The assetCode is a code that indicates the underlying asset. This SHOULD be an ISO4217 currency code.
assetScale:
title: Asset scale
type: integer
minimum: 0
maximum: 255
description: The scale of amounts denoted in the corresponding asset code.
receiver:
title: Receiver
type: string
description: The URL of the incoming payment that is being paid.
format: uri
pattern: '^(https|http)://(.+)/incoming-payments/(.+)$'
examples:
- 'https://ilp.interledger-test.dev/incoming-payments/08394f02-7b7b-45e2-b645-51d04e7c330c'
- 'http://ilp.interledger-test.dev/incoming-payments/08394f02-7b7b-45e2-b645-51d04e7c330c'
- 'https://ilp.interledger-test.dev/incoming-payments/1'
walletAddress:
title: Wallet Address
type: string
description: 'URL of a wallet address hosted by a Rafiki instance.'
format: uri