Skip to content

Commit bc61c87

Browse files
author
Codat Pipeline Bot
committed
MED-450 - Adding OAS examples so it matches our updated reasons (#38)
1 parent e942c7b commit bc61c87

2 files changed

Lines changed: 51 additions & 6 deletions

File tree

json/Codat-Lending.json

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110422,7 +110422,14 @@
110422110422
"$ref": "#/components/schemas/FinancialSummary"
110423110423
},
110424110424
"example": {
110425-
"booksClosedDate": "2025-05-31T00:00:00Z",
110425+
"booksClosedDate": {
110426+
"date": "2025-05-31T00:00:00Z",
110427+
"reason": [
110428+
"One or more accounts show a deviation from expected movements for March 2025",
110429+
"One of the marketing accounts haven't been booked for February 2025",
110430+
"One of the inventory accounts haven't been booked for March 2025"
110431+
]
110432+
},
110426110433
"accountingScore": {
110427110434
"score": 90,
110428110435
"reason": [
@@ -120800,9 +120807,28 @@
120800120807
"type": "object",
120801120808
"properties": {
120802120809
"booksClosedDate": {
120803-
"type": "string",
120810+
"type": "object",
120804120811
"description": "The date time in UTC the books closed.",
120805-
"example": "2025-05-31T00:00:00Z"
120812+
"properties": {
120813+
"date": {
120814+
"type": "string",
120815+
"format": "date-time",
120816+
"description": "The date time in UTC the books closed.",
120817+
"example": "2025-05-31T00:00:00Z"
120818+
},
120819+
"reason": {
120820+
"type": "array",
120821+
"description": "List of reasons explaining the books closed date.",
120822+
"items": {
120823+
"type": "string"
120824+
},
120825+
"example": [
120826+
"One or more accounts show a deviation from expected movements for March 2025",
120827+
"One of the marketing accounts haven't been booked for February 2025",
120828+
"One of the inventory accounts haven't been booked for March 2025"
120829+
]
120830+
}
120831+
}
120806120832
},
120807120833
"accountingScore": {
120808120834
"type": "object",

yaml/Codat-Lending.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75924,7 +75924,12 @@ paths:
7592475924
schema:
7592575925
$ref: '#/components/schemas/FinancialSummary'
7592675926
example:
75927-
booksClosedDate: '2025-05-31T00:00:00Z'
75927+
booksClosedDate:
75928+
date: '2025-05-31T00:00:00Z'
75929+
reason:
75930+
- One or more accounts show a deviation from expected movements for March 2025
75931+
- One of the marketing accounts haven't been booked for February 2025
75932+
- One of the inventory accounts haven't been booked for March 2025
7592875933
accountingScore:
7592975934
score: 90
7593075935
reason:
@@ -84011,9 +84016,23 @@ components:
8401184016
type: object
8401284017
properties:
8401384018
booksClosedDate:
84014-
type: string
84019+
type: object
8401584020
description: The date time in UTC the books closed.
84016-
example: '2025-05-31T00:00:00Z'
84021+
properties:
84022+
date:
84023+
type: string
84024+
format: date-time
84025+
description: The date time in UTC the books closed.
84026+
example: '2025-05-31T00:00:00Z'
84027+
reason:
84028+
type: array
84029+
description: List of reasons explaining the books closed date.
84030+
items:
84031+
type: string
84032+
example:
84033+
- One or more accounts show a deviation from expected movements for March 2025
84034+
- One of the marketing accounts haven't been booked for February 2025
84035+
- One of the inventory accounts haven't been booked for March 2025
8401784036
accountingScore:
8401884037
type: object
8401984038
description: 'A score based on data completeness, accuracy, consistency, and presentation of data and the reasons for the score.'

0 commit comments

Comments
 (0)