From c5872b52fbcceef0d173ae696c23ccb558fe9a38 Mon Sep 17 00:00:00 2001 From: Spencer Post Date: Fri, 6 Sep 2024 15:13:22 -0600 Subject: [PATCH] fix swagger definition --- modules/swagger.yaml | 50 +++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/modules/swagger.yaml b/modules/swagger.yaml index 0229f412d..2f40e4ac4 100755 --- a/modules/swagger.yaml +++ b/modules/swagger.yaml @@ -999,27 +999,29 @@ definitions: and it was rolled back. usage: description: "usage cost of the aws account from start date to end date" - type: object - properties: - principalId: - type: string - description: > - principalId of the user who owns the lease of the AWS account - accountId: - type: string - description: accountId of the AWS account - startDate: - type: number - description: usage start date as Epoch Timestamp - endDate: - type: number - description: usage end date as Epoch Timestamp - costAmount: - type: number - description: usage cost Amount of AWS account for given period - costCurrency: - type: string - description: usage cost currency - timeToLive: - type: number - description: ttl attribute as Epoch Timestamp + type: array + items: + type: object + properties: + principalId: + type: string + description: > + principalId of the user who owns the lease of the AWS account + accountId: + type: string + description: accountId of the AWS account + startDate: + type: number + description: usage start date as Epoch Timestamp + endDate: + type: number + description: usage end date as Epoch Timestamp + costAmount: + type: number + description: usage cost Amount of AWS account for given period + costCurrency: + type: string + description: usage cost currency + timeToLive: + type: number + description: ttl attribute as Epoch Timestamp