Skip to content

Commit

Permalink
fix: required props (#145)
Browse files Browse the repository at this point in the history
* fix: required props

* make `transactionId` optional for `bulkTransactionIndividualTransferResult` type
* make `expiration` required for `bulkQuoteResponse` type
* fix type names

* bump deps
  • Loading branch information
kirgene authored Sep 30, 2022
1 parent 2a71f65 commit d615f4a
Show file tree
Hide file tree
Showing 21 changed files with 101,639 additions and 78,568 deletions.
174 changes: 87 additions & 87 deletions docs/fspiop-rest-v1.0-openapi3-snippets.yaml

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions docs/fspiop-rest-v1.1-openapi3-snippets.yaml

Large diffs are not rendered by default.

87 changes: 43 additions & 44 deletions docs/sdk-scheme-adapter-inbound-v2_0_0-openapi3-snippets.yaml

Large diffs are not rendered by default.

4,657 changes: 0 additions & 4,657 deletions docs/sdk-scheme-adapter-outbound-openapi3-snippets.yaml

This file was deleted.

156 changes: 71 additions & 85 deletions docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml

Large diffs are not rendered by default.

118 changes: 59 additions & 59 deletions docs/thirdparty-openapi3-snippets.yaml

Large diffs are not rendered by default.

1,314 changes: 659 additions & 655 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"license": "Apache-2.0",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.9",
"commander": "^9.4.0",
"commander": "^9.4.1",
"jest-ts-auto-mock": "^2.1.0",
"js-yaml": "^4.1.0",
"json-refs": "^3.0.15",
Expand All @@ -85,11 +85,11 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@redocly/openapi-cli": "^1.0.0-beta.94",
"@types/jest": "^29.0.3",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"@types/jest": "^29.1.1",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"diff": "^5.1.0",
"eslint": "^8.23.1",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-import-resolver-typescript": "^3.5.1",
Expand All @@ -100,18 +100,18 @@
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-standard": "^5.0.0",
"husky": "4.3.8",
"jest": "^29.0.3",
"jest": "^29.1.2",
"jest-junit": "^14.0.1",
"lint-staged": "^13.0.3",
"npm-audit-resolver": "^3.0.0-7",
"npm-check-updates": "^16.2.1",
"npm-check-updates": "^16.3.4",
"prettier": "^2.7.1",
"standard-version": "^9.5.0",
"swagger-cli": "^4.0.4",
"ts-jest": "^29.0.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"typescript": "^4.8.3"
"typescript": "^4.8.4"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ allOf:
- $ref: ./errorResponse.yaml
- type: object
required:
- bulkTansferState
- bulkQuoteState
properties:
bulkQuoteState:
$ref: ./bulkQuoteResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ required:
- bulkQuoteId
- individualQuoteResults
- currentState
- expiration
properties:
bulkQuoteId:
$ref: ./CorrelationId.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type: object
required:
- homeTransactionId
- transactionId
- to
- amountType
- currency
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ properties:
transactionType:
$ref: ./transferTransactionType.yaml
ilpPacket:
$ref: ./ilpPacket.yaml
$ref: ./IlpPacket.yaml
condition:
$ref: ./ilpCondition.yaml
$ref: ./IlpCondition.yaml
note:
$ref: ./Note.yaml
extensions:
Expand Down
6,860 changes: 4,183 additions & 2,677 deletions src/fspiop/v1_0/openapi.ts

Large diffs are not rendered by default.

5,262 changes: 3,405 additions & 1,857 deletions src/fspiop/v1_1/openapi.ts

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/sdk-scheme-adapter/v2_0_0/inbound/json-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -7684,7 +7684,6 @@
"type": "object",
"required": [
"homeTransactionId",
"transactionId",
"to",
"amountType",
"currency",
Expand Down Expand Up @@ -9485,7 +9484,6 @@
"type": "object",
"required": [
"homeTransactionId",
"transactionId",
"to",
"amountType",
"currency",
Expand Down
Loading

0 comments on commit d615f4a

Please sign in to comment.