Skip to content

Commit

Permalink
chore: add stricter validation for GP testing (#183)
Browse files Browse the repository at this point in the history
* chore: add stricter validation for GP testing

* chore: add ilp pattern and fx quote enum

* chore: naming

* chore: dep
  • Loading branch information
kleyow authored Oct 29, 2024
1 parent 6bf6080 commit 3ba043f
Show file tree
Hide file tree
Showing 18 changed files with 34,258 additions and 1,940 deletions.
564 changes: 554 additions & 10 deletions docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,8 +1,176 @@
title: ActiveCurrencyCode
type: string
pattern: ^[A-Z]{3,3}$
description: >-
A code allocated to a currency by a Maintenance Agency under an international
identification scheme as described in the latest edition of the international standard ISO
4217 "Codes for the representation of currencies and funds".
NOTE: This has been modified away from the original ISO20022 pattern to enums.
example: USD
minLength: 3
maxLength: 3
enum:
- AED
- AFN
- ALL
- AMD
- ANG
- AOA
- ARS
- AUD
- AWG
- AZN
- BAM
- BBD
- BDT
- BGN
- BHD
- BIF
- BMD
- BND
- BOB
- BRL
- BSD
- BTN
- BWP
- BYN
- BZD
- CAD
- CDF
- CHF
- CLP
- CNY
- COP
- CRC
- CUC
- CUP
- CVE
- CZK
- DJF
- DKK
- DOP
- DZD
- EGP
- ERN
- ETB
- EUR
- FJD
- FKP
- GBP
- GEL
- GGP
- GHS
- GIP
- GMD
- GNF
- GTQ
- GYD
- HKD
- HNL
- HRK
- HTG
- HUF
- IDR
- ILS
- IMP
- INR
- IQD
- IRR
- ISK
- JEP
- JMD
- JOD
- JPY
- KES
- KGS
- KHR
- KMF
- KPW
- KRW
- KWD
- KYD
- KZT
- LAK
- LBP
- LKR
- LRD
- LSL
- LYD
- MAD
- MDL
- MGA
- MKD
- MMK
- MNT
- MOP
- MRO
- MUR
- MVR
- MWK
- MXN
- MYR
- MZN
- NAD
- NGN
- NIO
- NOK
- NPR
- NZD
- OMR
- PAB
- PEN
- PGK
- PHP
- PKR
- PLN
- PYG
- QAR
- RON
- RSD
- RUB
- RWF
- SAR
- SBD
- SCR
- SDG
- SEK
- SGD
- SHP
- SLL
- SOS
- SPL
- SRD
- STD
- SVC
- SYP
- SZL
- THB
- TJS
- TMT
- TND
- TOP
- TRY
- TTD
- TVD
- TWD
- TZS
- UAH
- UGX
- USD
- UYU
- UZS
- VEF
- VND
- VUV
- WST
- XAF
- XCD
- XDR
- XOF
- XPF
- XTS
- XXX
- YER
- ZAR
- ZMW
- ZWD
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,173 @@ description: >
A code allocated to a currency by a Maintenance Agency under an international
identification scheme, as described in the latest edition of the international standard ISO
4217 "Codes for the representation of currencies and funds".
pattern: ^[A-Z]{3,3}$
NOTE: This has been modified away from the original ISO20022 pattern to enums.
example: USD
minLength: 3
maxLength: 3
enum:
- AED
- AFN
- ALL
- AMD
- ANG
- AOA
- ARS
- AUD
- AWG
- AZN
- BAM
- BBD
- BDT
- BGN
- BHD
- BIF
- BMD
- BND
- BOB
- BRL
- BSD
- BTN
- BWP
- BYN
- BZD
- CAD
- CDF
- CHF
- CLP
- CNY
- COP
- CRC
- CUC
- CUP
- CVE
- CZK
- DJF
- DKK
- DOP
- DZD
- EGP
- ERN
- ETB
- EUR
- FJD
- FKP
- GBP
- GEL
- GGP
- GHS
- GIP
- GMD
- GNF
- GTQ
- GYD
- HKD
- HNL
- HRK
- HTG
- HUF
- IDR
- ILS
- IMP
- INR
- IQD
- IRR
- ISK
- JEP
- JMD
- JOD
- JPY
- KES
- KGS
- KHR
- KMF
- KPW
- KRW
- KWD
- KYD
- KZT
- LAK
- LBP
- LKR
- LRD
- LSL
- LYD
- MAD
- MDL
- MGA
- MKD
- MMK
- MNT
- MOP
- MRO
- MUR
- MVR
- MWK
- MXN
- MYR
- MZN
- NAD
- NGN
- NIO
- NOK
- NPR
- NZD
- OMR
- PAB
- PEN
- PGK
- PHP
- PKR
- PLN
- PYG
- QAR
- RON
- RSD
- RUB
- RWF
- SAR
- SBD
- SCR
- SDG
- SEK
- SGD
- SHP
- SLL
- SOS
- SPL
- SRD
- STD
- SVC
- SYP
- SZL
- THB
- TJS
- TMT
- TND
- TOP
- TRY
- TTD
- TVD
- TWD
- TZS
- UAH
- UGX
- USD
- UYU
- UZS
- VEF
- VND
- VUV
- WST
- XAF
- XCD
- XDR
- XOF
- XPF
- XTS
- XXX
- YER
- ZAR
- ZMW
- ZWD
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: AmountTypeEnum
description: |
NOTE: This pattern is not the original ISO20022 specification.
This represents the enum values when mapping to and from FSPIOP specification.
type: string
enum:
- SEND
- RECEIVE
example: SEND
Loading

0 comments on commit 3ba043f

Please sign in to comment.