Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: uuid v7 #171

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ module.exports = {
reject: [
// 10.1.0 is a breaking change and has some issues
'@apidevtools/json-schema-ref-parser',
// Upgrading the following redocly dependencies breaks with the following error:
// node_modules/@redocly/openapi-core/lib/types/redocly-yaml.d.ts:2:33 - error TS2307: Cannot find module 'json-schema-to-ts' or its corresponding type declarations.
'@redocly/cli',
'@redocly/openapi-core',
// Updating eslint breaks the build
'eslint'
// upgrade to eslint 9 is non-trivial
'eslint',
]
}
1 change: 1 addition & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Only use one of ["low": true, "moderate": true, "high": true, "critical": true]
"moderate": true,
"allowlist": [
"GHSA-2p57-rm9w-gvfp", // socks>ip
"GHSA-wf5p-g6vw-rhxx" // https://github.com/advisories/GHSA-wf5p-g6vw-rhxx
]
}
2 changes: 1 addition & 1 deletion docs/fspiop-rest-v2.0-openapi3-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,7 @@ components:
title: CorrelationId
type: string
pattern: >-
^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
description: >-
Identifier that correlates all messages of the same sequence. The API
data type UUID (Universally Unique Identifier) is a JSON String in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ components:
CorrelationId:
title: CorrelationId
type: string
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
description: Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).
example: b51ec534-ee48-4575-b6a9-ead2955b8069
bulkTransactionStatus:
Expand Down
14 changes: 7 additions & 7 deletions docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ components:
type: string
bulkQuoteId:
description: A Mojaloop API bulk quote identifier (UUID).
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
bulkQuoteRequest:
description: A request for a bulk quote.
Expand Down Expand Up @@ -720,7 +720,7 @@ components:
type: object
bulkTransferId:
description: A Mojaloop API transfer identifier (UUID).
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
bulkTransferRequest:
properties:
Expand Down Expand Up @@ -1163,7 +1163,7 @@ components:
type: string
quoteId:
description: A Mojaloop API quote identifier (UUID).
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
quoteRequest:
description: A request for a quote for transfer from the DFSP backend.
Expand Down Expand Up @@ -1275,7 +1275,7 @@ components:
type: string
transactionId:
description: ID of the transaction, the ID is decided by the Payer FSP during the creation of the quote.
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
transactionRequest:
description: A request for a pull based transfer.
Expand Down Expand Up @@ -1321,7 +1321,7 @@ components:
type: object
transactionRequestId:
description: A Mojaloop API transaction request identifier (UUID).
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
transactionRequestResponse:
description: A response to a request for a quote.
Expand Down Expand Up @@ -1413,7 +1413,7 @@ components:
type: object
transferId:
description: A Mojaloop API transfer identifier (UUID).
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
type: string
transferParty:
properties:
Expand Down Expand Up @@ -1603,7 +1603,7 @@ components:
CorrelationId:
title: CorrelationId
type: string
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
description: Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).
example: b51ec534-ee48-4575-b6a9-ead2955b8069
bulkTransactionStatus:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ components:
CorrelationId:
title: CorrelationId
type: string
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
description: Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).
example: b51ec534-ee48-4575-b6a9-ead2955b8069
errorResponse:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ components:
CorrelationId:
title: CorrelationId
type: string
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
description: Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).
example: b51ec534-ee48-4575-b6a9-ead2955b8069
errorResponse:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: CorrelationId
type: string
pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'
pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[1-7][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$'
description: >-
Identifier that correlates all messages of the same sequence. The API data
type UUID (Universally Unique Identifier) is a JSON String in canonical
Expand Down
Loading