Skip to content

Commit

Permalink
Merged PR 86225: BF OAS - fix source account required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Codat Pipeline Bot committed Jan 24, 2025
1 parent cf27962 commit 81af787
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 16 deletions.
23 changes: 17 additions & 6 deletions json/Codat-Bank-Feeds.json
Original file line number Diff line number Diff line change
Expand Up @@ -3341,13 +3341,13 @@
{
"type": "array",
"items": {
"$ref": "#/components/schemas/SourceAccountV2"
"$ref": "#/components/schemas/SourceAccountV2/definitions/sourceAccountV2Prototype"
}
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/SourceAccount"
"$ref": "#/components/schemas/SourceAccount/definitions/sourceAccountPrototype"
}
}
]
Expand Down Expand Up @@ -6935,7 +6935,7 @@
],
"definitions": {
"sourceAccountPrototype": {
"title": "Source account prototype",
"title": "Source account (v1)",
"type": "object",
"properties": {
"id": {
Expand All @@ -6962,7 +6962,10 @@
"modifiedDate": {
"$ref": "#/components/schemas/SourceAccount/properties/modifiedDate"
}
}
},
"required": [
"id"
]
},
"sourceAccounts": {
"title": "Source accounts",
Expand Down Expand Up @@ -7151,7 +7154,7 @@
],
"definitions": {
"sourceAccountV2Prototype": {
"title": "Source account version 2 prototype",
"title": "Source account (v2)",
"type": "object",
"properties": {
"id": {
Expand Down Expand Up @@ -7184,7 +7187,15 @@
"accountInfo": {
"$ref": "#/components/schemas/SourceAccountV2/definitions/accountInfo"
}
}
},
"required": [
"id",
"accountName",
"accountType",
"accountNumber",
"currency",
"balance"
]
},
"accountInfo": {
"title": "Account Info",
Expand Down
19 changes: 15 additions & 4 deletions json/Codat-Lending.json
Original file line number Diff line number Diff line change
Expand Up @@ -121885,7 +121885,7 @@
],
"definitions": {
"sourceAccountPrototype": {
"title": "Source account prototype",
"title": "Source account (v1)",
"type": "object",
"properties": {
"id": {
Expand All @@ -121912,7 +121912,10 @@
"modifiedDate": {
"$ref": "#/components/schemas/SourceAccount/properties/modifiedDate"
}
}
},
"required": [
"id"
]
},
"sourceAccounts": {
"title": "Source accounts",
Expand Down Expand Up @@ -122030,7 +122033,7 @@
],
"definitions": {
"sourceAccountV2Prototype": {
"title": "Source account version 2 prototype",
"title": "Source account (v2)",
"type": "object",
"properties": {
"id": {
Expand Down Expand Up @@ -122063,7 +122066,15 @@
"accountInfo": {
"$ref": "#/components/schemas/SourceAccountV2/definitions/accountInfo"
}
}
},
"required": [
"id",
"accountName",
"accountType",
"accountNumber",
"currency",
"balance"
]
},
"accountInfo": {
"title": "Account Info",
Expand Down
17 changes: 13 additions & 4 deletions yaml/Codat-Bank-Feeds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2293,10 +2293,10 @@ paths:
oneOf:
- type: array
items:
$ref: '#/components/schemas/SourceAccountV2'
$ref: '#/components/schemas/SourceAccountV2/definitions/sourceAccountV2Prototype'
- type: array
items:
$ref: '#/components/schemas/SourceAccount'
$ref: '#/components/schemas/SourceAccount/definitions/sourceAccountPrototype'
responses:
'201':
description: Success
Expand Down Expand Up @@ -4906,7 +4906,7 @@ components:
- id
definitions:
sourceAccountPrototype:
title: Source account prototype
title: Source account (v1)
type: object
properties:
id:
Expand All @@ -4925,6 +4925,8 @@ components:
$ref: '#/components/schemas/SourceAccount/properties/balance'
modifiedDate:
$ref: '#/components/schemas/SourceAccount/properties/modifiedDate'
required:
- id
sourceAccounts:
title: Source accounts
type: array
Expand Down Expand Up @@ -5070,7 +5072,7 @@ components:
- balance
definitions:
sourceAccountV2Prototype:
title: Source account version 2 prototype
title: Source account (v2)
type: object
properties:
id:
Expand All @@ -5093,6 +5095,13 @@ components:
$ref: '#/components/schemas/SourceAccountV2/properties/modifiedDate'
accountInfo:
$ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo'
required:
- id
- accountName
- accountType
- accountNumber
- currency
- balance
accountInfo:
title: Account Info
type: object
Expand Down
13 changes: 11 additions & 2 deletions yaml/Codat-Lending.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84841,7 +84841,7 @@ components:
- id
definitions:
sourceAccountPrototype:
title: Source account prototype
title: Source account (v1)
type: object
properties:
id:
Expand All @@ -84860,6 +84860,8 @@ components:
$ref: '#/components/schemas/SourceAccount/properties/balance'
modifiedDate:
$ref: '#/components/schemas/SourceAccount/properties/modifiedDate'
required:
- id
sourceAccounts:
title: Source accounts
type: array
Expand Down Expand Up @@ -84955,7 +84957,7 @@ components:
- balance
definitions:
sourceAccountV2Prototype:
title: Source account version 2 prototype
title: Source account (v2)
type: object
properties:
id:
Expand All @@ -84978,6 +84980,13 @@ components:
$ref: '#/components/schemas/SourceAccountV2/properties/modifiedDate'
accountInfo:
$ref: '#/components/schemas/SourceAccountV2/definitions/accountInfo'
required:
- id
- accountName
- accountType
- accountNumber
- currency
- balance
accountInfo:
title: Account Info
type: object
Expand Down

0 comments on commit 81af787

Please sign in to comment.