From 854c00d7db4411c21e05eed47d1a8842ae7b9cc4 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Fri, 13 Oct 2023 15:35:03 +0530 Subject: [PATCH 1/4] testing --- src/components/schemas/expense.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/schemas/expense.yaml b/src/components/schemas/expense.yaml index 88203d6e5..c15377c73 100644 --- a/src/components/schemas/expense.yaml +++ b/src/components/schemas/expense.yaml @@ -897,6 +897,14 @@ matched_corporate_card_transaction_out_embed: description: | Signifies post date of a card transaction. This date cannot be in future. + status: + type: string + enum: + - PENDING + - POSTED + example: PENDING + description: | + Signifies status of a card transaction. description: type: string nullable: true From 6e4bbd105c978d823ab1655c3e55a7c84ee6683d Mon Sep 17 00:00:00 2001 From: Siva Date: Fri, 13 Oct 2023 10:06:53 +0000 Subject: [PATCH 2/4] Auto generate API docs --- reference/admin.yaml | 8 ++++++++ reference/approver.yaml | 8 ++++++++ reference/spender.yaml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/reference/admin.yaml b/reference/admin.yaml index 89afb334c..d688bb4e9 100644 --- a/reference/admin.yaml +++ b/reference/admin.yaml @@ -2982,6 +2982,14 @@ components: description: | Signifies post date of a card transaction. This date cannot be in future. + status: + type: string + enum: + - PENDING + - POSTED + example: PENDING + description: | + Signifies status of a card transaction. description: type: string nullable: true diff --git a/reference/approver.yaml b/reference/approver.yaml index 599ff72ae..8a50c8728 100644 --- a/reference/approver.yaml +++ b/reference/approver.yaml @@ -1056,6 +1056,14 @@ components: description: | Signifies post date of a card transaction. This date cannot be in future. + status: + type: string + enum: + - PENDING + - POSTED + example: PENDING + description: | + Signifies status of a card transaction. description: type: string nullable: true diff --git a/reference/spender.yaml b/reference/spender.yaml index 73cd43c95..906bb0197 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -1200,6 +1200,14 @@ components: description: | Signifies post date of a card transaction. This date cannot be in future. + status: + type: string + enum: + - PENDING + - POSTED + example: PENDING + description: | + Signifies status of a card transaction. description: type: string nullable: true From 97f31fafeb259348499c8998343737c44bc9f9b6 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Mon, 16 Oct 2023 17:38:36 +0530 Subject: [PATCH 3/4] added null --- src/components/schemas/expense.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/schemas/expense.yaml b/src/components/schemas/expense.yaml index c15377c73..13b968c0a 100644 --- a/src/components/schemas/expense.yaml +++ b/src/components/schemas/expense.yaml @@ -899,9 +899,11 @@ matched_corporate_card_transaction_out_embed: This date cannot be in future. status: type: string + nullable: true enum: - PENDING - POSTED + - null example: PENDING description: | Signifies status of a card transaction. From e37a64f287ee56f1ba83e5e4f4766bebf1f95d09 Mon Sep 17 00:00:00 2001 From: Siva Date: Mon, 16 Oct 2023 12:09:35 +0000 Subject: [PATCH 4/4] Auto generate API docs --- reference/admin.yaml | 2 ++ reference/approver.yaml | 2 ++ reference/spender.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/reference/admin.yaml b/reference/admin.yaml index d688bb4e9..59b51c2bd 100644 --- a/reference/admin.yaml +++ b/reference/admin.yaml @@ -2984,9 +2984,11 @@ components: This date cannot be in future. status: type: string + nullable: true enum: - PENDING - POSTED + - null example: PENDING description: | Signifies status of a card transaction. diff --git a/reference/approver.yaml b/reference/approver.yaml index 8a50c8728..748307be2 100644 --- a/reference/approver.yaml +++ b/reference/approver.yaml @@ -1058,9 +1058,11 @@ components: This date cannot be in future. status: type: string + nullable: true enum: - PENDING - POSTED + - null example: PENDING description: | Signifies status of a card transaction. diff --git a/reference/spender.yaml b/reference/spender.yaml index 906bb0197..d14c64ca1 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -1202,9 +1202,11 @@ components: This date cannot be in future. status: type: string + nullable: true enum: - PENDING - POSTED + - null example: PENDING description: | Signifies status of a card transaction.