-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initialize thirdparty snippets (#15)
* feat: initialize thirdparty snippets * chore: address comments
- Loading branch information
Showing
7 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openapi: 3.0.2 | ||
info: | ||
version: '0.1' | ||
title: Thirdparty Snippets | ||
description: | | ||
Based on sequence diagrams | ||
(https://github.com/mojaloop/pisp/tree/master/docs/out). | ||
This is a work in progress. | ||
license: | ||
name: TBD | ||
servers: | ||
- url: '{protocol}://hostname:<port>/switch/' | ||
variables: | ||
protocol: | ||
enum: | ||
- http | ||
- https | ||
default: https | ||
components: | ||
schemas: | ||
AccountAddress: | ||
type: string | ||
description: | | ||
A long-lived unique account identifier provided by the DFSP. This MUST NOT | ||
be Bank Account Number or anything that may expose a User's private bank | ||
account information. | ||
pattern: '^([0-9A-Za-z_~\-\.]+[0-9A-Za-z_~\-])$' | ||
minLength: 1 | ||
maxLength: 1023 | ||
paths: | ||
/health: | ||
get: | ||
summary: This path is for demonstration purposes. | ||
description: A valid OpenApi3 specification requires `paths` to be defined. | ||
responses: | ||
'200': | ||
description: OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
openapi: 3.0.2 | ||
info: | ||
$ref: ./info/index.yaml | ||
servers: | ||
- url: '{protocol}://hostname:<port>/switch/' | ||
variables: | ||
protocol: | ||
enum: | ||
- http | ||
- https | ||
default: https | ||
components: | ||
schemas: | ||
$ref: ./schemas/index.yaml | ||
paths: | ||
/health: | ||
get: | ||
summary: This path is for demonstration purposes. | ||
description: A valid OpenApi3 specification requires `paths` to be defined. | ||
responses: | ||
'200': | ||
description: OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '0.1' | ||
title: 'Thirdparty Snippets' | ||
description: | | ||
Based on sequence diagrams | ||
(https://github.com/mojaloop/pisp/tree/master/docs/out). | ||
This is a work in progress. | ||
license: | ||
name: TBD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type: string | ||
description: | | ||
A long-lived unique account identifier provided by the DFSP. This MUST NOT | ||
be Bank Account Number or anything that may expose a User's private bank | ||
account information. | ||
pattern: ^([0-9A-Za-z_~\-\.]+[0-9A-Za-z_~\-])$ | ||
minLength: 1 | ||
maxLength: 1023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
AccountAddress: | ||
$ref: ./AccountAddress.yaml |