From 29e14ad68510cc9c2474fc5bc6f26db8e8e74f84 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 14:19:35 +0100 Subject: [PATCH 01/18] test: attempt to make POST quote amounts oneOf --- openapi/resource-server.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 60d9e3b3..50abf1cf 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -581,10 +581,11 @@ paths: properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver - receiveAmount: - $ref: ./schemas.yaml#/components/schemas/amount - sendAmount: - $ref: ./schemas.yaml#/components/schemas/amount + oneOf: + receiveAmount: + $ref: ./schemas.yaml#/components/schemas/amount + sendAmount: + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From 85761645ced49728e6d8d1b76a58b3439235579a Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 14:29:28 +0100 Subject: [PATCH 02/18] feat: another oneOf attempt --- openapi/resource-server.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 50abf1cf..82f8c36c 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -581,11 +581,11 @@ paths: properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver - oneOf: - receiveAmount: - $ref: ./schemas.yaml#/components/schemas/amount - sendAmount: - $ref: ./schemas.yaml#/components/schemas/amount + oneOf: + properties: + receiveAmount: $ref: ./schemas.yaml#/components/schemas/amount + properties: + sendAmount: $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From b1a5ea6a9be6de01eb2d266f807254e6ad2b1574 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 14:31:15 +0100 Subject: [PATCH 03/18] feat: proper format --- openapi/resource-server.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 82f8c36c..c58f3bb5 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -583,9 +583,11 @@ paths: $ref: ./schemas.yaml#/components/schemas/receiver oneOf: properties: - receiveAmount: $ref: ./schemas.yaml#/components/schemas/amount + receiveAmount: + $ref: ./schemas.yaml#/components/schemas/amount properties: - sendAmount: $ref: ./schemas.yaml#/components/schemas/amount + sendAmount: + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From bf0c725c57721abca75e22f3e399ff224b01d48b Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 14:37:41 +0100 Subject: [PATCH 04/18] remove properties from oneOf --- openapi/resource-server.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index c58f3bb5..9c65a148 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -582,12 +582,10 @@ paths: receiver: $ref: ./schemas.yaml#/components/schemas/receiver oneOf: - properties: - receiveAmount: - $ref: ./schemas.yaml#/components/schemas/amount - properties: - sendAmount: - $ref: ./schemas.yaml#/components/schemas/amount + receiveAmount: + $ref: ./schemas.yaml#/components/schemas/amount + sendAmount: + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From 65d3c30a500ea08fd3b5c43900046356d8c7253b Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:00:09 +0100 Subject: [PATCH 05/18] attempting nested property --- openapi/resource-server.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 9c65a148..54867f9c 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -581,11 +581,15 @@ paths: properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver - oneOf: - receiveAmount: - $ref: ./schemas.yaml#/components/schemas/amount - sendAmount: - $ref: ./schemas.yaml#/components/schemas/amount + amount: + description: Possible amount types + oneOf: + receiveAmount: + description: The receiveAmount. + $ref: ./schemas.yaml#/components/schemas/amount + sendAmount: + description: The sendAmount + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From c900f359cc8059758873692f7329683696453bca Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:04:00 +0100 Subject: [PATCH 06/18] convert oneOf to array --- openapi/resource-server.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 54867f9c..4c7b7a36 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -584,12 +584,12 @@ paths: amount: description: Possible amount types oneOf: - receiveAmount: - description: The receiveAmount. - $ref: ./schemas.yaml#/components/schemas/amount - sendAmount: - description: The sendAmount - $ref: ./schemas.yaml#/components/schemas/amount + - receiveAmount: + description: The receiveAmount. + $ref: ./schemas.yaml#/components/schemas/amount + - sendAmount: + description: The sendAmount + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From 11b36902f0aab9f9d546861890b259c737a1f652 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:08:26 +0100 Subject: [PATCH 07/18] move oneOf outside of properties --- openapi/resource-server.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 4c7b7a36..a473a0df 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -583,13 +583,13 @@ paths: $ref: ./schemas.yaml#/components/schemas/receiver amount: description: Possible amount types - oneOf: - - receiveAmount: - description: The receiveAmount. - $ref: ./schemas.yaml#/components/schemas/amount - - sendAmount: - description: The sendAmount - $ref: ./schemas.yaml#/components/schemas/amount + oneOf: + - receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + - sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From 35ea6d776f3291800b616eaa71b92cb9bd5e0c95 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:11:41 +0100 Subject: [PATCH 08/18] remove extraneous property --- openapi/resource-server.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index a473a0df..42932831 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -581,8 +581,6 @@ paths: properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver - amount: - description: Possible amount types oneOf: - receiveAmount: description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. From f1f960f1b891ea2a8179006a2e8a79312bd195d8 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:19:12 +0100 Subject: [PATCH 09/18] move receiver into oneOf --- openapi/resource-server.yaml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 42932831..1379bdf0 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -578,16 +578,19 @@ paths: schema: type: object additionalProperties: false - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver oneOf: - - receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - - sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount + - properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + - properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount required: - receiver description: |- From 5f3b19e7bb6d324a54b8b546b8e023b7c343e33a Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:28:16 +0100 Subject: [PATCH 10/18] oneOf schema instead --- openapi/resource-server.yaml | 40 ++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 1379bdf0..5314bd05 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -577,22 +577,32 @@ paths: assetScale: 2 schema: type: object - additionalProperties: false oneOf: - - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - required: - - receiver + - schema: + type: object + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: + - receiver + - receiveAmount + additionalProperties: false + - schema: + type: object + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: + - receiver + - sendAmount + additionalProperties: false + description: |- A subset of the quotes schema is accepted as input to create a new quote. From 37aa42798d982c7415096e29b3d14797f1cfbc93 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:33:28 +0100 Subject: [PATCH 11/18] named schema --- openapi/resource-server.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 5314bd05..c82649b6 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -576,9 +576,8 @@ paths: assetCode: USD assetScale: 2 schema: - type: object oneOf: - - schema: + - receiverWithReceiveAmount: type: object properties: receiver: @@ -590,7 +589,7 @@ paths: - receiver - receiveAmount additionalProperties: false - - schema: + - receiverWithSendAmount: type: object properties: receiver: From bb47ef0720521d8cd330f9f943e4ae3561c1d9ca Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 15:38:36 +0100 Subject: [PATCH 12/18] no labelled schema --- openapi/resource-server.yaml | 44 ++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index c82649b6..cadd7569 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -577,30 +577,26 @@ paths: assetScale: 2 schema: oneOf: - - receiverWithReceiveAmount: - type: object - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - required: - - receiver - - receiveAmount - additionalProperties: false - - receiverWithSendAmount: - type: object - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - required: - - receiver - - sendAmount - additionalProperties: false + - properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: + - receiver + - receiveAmount + additionalProperties: false + - properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: + - receiver + - sendAmount + additionalProperties: false description: |- A subset of the quotes schema is accepted as input to create a new quote. From eb401e6c807609dfb82488ea1a54bc97a5bf12df Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 17:14:20 +0100 Subject: [PATCH 13/18] Single receiver possibility --- openapi/resource-server.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index cadd7569..47886293 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -577,7 +577,15 @@ paths: assetScale: 2 schema: oneOf: - - properties: + - description: Quote for incoming payment + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + required: + - receiver + additionalProperties: false + - description: Fixed receive quote + properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver receiveAmount: @@ -587,7 +595,8 @@ paths: - receiver - receiveAmount additionalProperties: false - - properties: + - description: Fixed send quote + properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver sendAmount: From 030916574e666070d529b0c728b9be086211433c Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 17:28:24 +0100 Subject: [PATCH 14/18] simplify by using oneOf required --- openapi/resource-server.yaml | 39 +++++++++++------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 47886293..322dec2f 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -576,37 +576,22 @@ paths: assetCode: USD assetScale: 2 schema: + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount oneOf: - - description: Quote for incoming payment - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - required: + - required: - receiver - additionalProperties: false - - description: Fixed receive quote - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - required: + - sendAmount + - required: - receiver - receiveAmount - additionalProperties: false - - description: Fixed send quote - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - required: - - receiver - - sendAmount - additionalProperties: false - description: |- A subset of the quotes schema is accepted as input to create a new quote. From 8f704ed6d671a2680228e1da12d2d36662e15eda Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 17:37:54 +0100 Subject: [PATCH 15/18] Revert "simplify by using oneOf required" This reverts commit 030916574e666070d529b0c728b9be086211433c. --- openapi/resource-server.yaml | 39 +++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 322dec2f..47886293 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -576,22 +576,37 @@ paths: assetCode: USD assetScale: 2 schema: - properties: - receiver: - $ref: ./schemas.yaml#/components/schemas/receiver - sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount - receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. - $ref: ./schemas.yaml#/components/schemas/amount oneOf: - - required: + - description: Quote for incoming payment + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + required: - receiver - - sendAmount - - required: + additionalProperties: false + - description: Fixed receive quote + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + receiveAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: - receiver - receiveAmount + additionalProperties: false + - description: Fixed send quote + properties: + receiver: + $ref: ./schemas.yaml#/components/schemas/receiver + sendAmount: + description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + $ref: ./schemas.yaml#/components/schemas/amount + required: + - receiver + - sendAmount + additionalProperties: false + description: |- A subset of the quotes schema is accepted as input to create a new quote. From 5515c2465ca810a0850e38fbd3949b9fe7b024b6 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Thu, 8 Dec 2022 23:28:15 +0100 Subject: [PATCH 16/18] Update descriptions --- openapi/resource-server.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 47886293..9f592e5d 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -577,14 +577,14 @@ paths: assetScale: 2 schema: oneOf: - - description: Quote for incoming payment + - description: Create quote for an `receiver` that is an Incoming Payment with an `incomingAmount` properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver required: - receiver additionalProperties: false - - description: Fixed receive quote + - description: Create a quote with a fixed receive amount properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver @@ -595,7 +595,7 @@ paths: - receiver - receiveAmount additionalProperties: false - - description: Fixed send quote + - description: Create a quote with a fixed send amount properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver From 8b74a0c7dc34afedcae9208f0c99b81e6aa3d6e3 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Fri, 9 Dec 2022 15:48:01 +0100 Subject: [PATCH 17/18] update send and receiveAmount descriptions for quote creation --- openapi/resource-server.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 9f592e5d..79be8a6c 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -584,12 +584,12 @@ paths: required: - receiver additionalProperties: false - - description: Create a quote with a fixed receive amount + - description: Create a quote with a fixed-receive amount properties: receiver: $ref: ./schemas.yaml#/components/schemas/receiver receiveAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + description: The maximum amount that should be paid into the receiving payment pointer. $ref: ./schemas.yaml#/components/schemas/amount required: - receiver @@ -600,7 +600,7 @@ paths: receiver: $ref: ./schemas.yaml#/components/schemas/receiver sendAmount: - description: All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant. + description: The maximum amount that should be sent from the sending payment pointer. $ref: ./schemas.yaml#/components/schemas/amount required: - receiver From a1f363de04182ad46f590541c2387d062b577c27 Mon Sep 17 00:00:00 2001 From: Max Kurapov Date: Fri, 9 Dec 2022 16:08:38 +0100 Subject: [PATCH 18/18] more description updates --- openapi/resource-server.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index 79be8a6c..12f3270f 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -589,7 +589,7 @@ paths: receiver: $ref: ./schemas.yaml#/components/schemas/receiver receiveAmount: - description: The maximum amount that should be paid into the receiving payment pointer. + description: The fixed amount that would be paid into the receiving payment pointer given a successful outgoing payment. $ref: ./schemas.yaml#/components/schemas/amount required: - receiver @@ -600,7 +600,7 @@ paths: receiver: $ref: ./schemas.yaml#/components/schemas/receiver sendAmount: - description: The maximum amount that should be sent from the sending payment pointer. + description: The fixed amount that would be sent from the sending payment pointer given a successful outgoing payment. $ref: ./schemas.yaml#/components/schemas/amount required: - receiver