From ca38c4fab215da383d742b0e53d70ec93c09dd69 Mon Sep 17 00:00:00 2001 From: DmitryAnansky Date: Wed, 24 Jun 2026 11:17:18 +0300 Subject: [PATCH] fix: update revenue parameter examples --- openapi/components/schemas/RevenueStatistics.yaml | 4 ++-- openapi/paths/revenue.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi/components/schemas/RevenueStatistics.yaml b/openapi/components/schemas/RevenueStatistics.yaml index 065f784..4dd4792 100644 --- a/openapi/components/schemas/RevenueStatistics.yaml +++ b/openapi/components/schemas/RevenueStatistics.yaml @@ -33,11 +33,11 @@ properties: minimum: 0 startDate: type: string - format: date + format: date-time description: Start date of the revenue calculation period. endDate: type: string - format: date + format: date-time description: End date of the revenue calculation period. required: - revenue diff --git a/openapi/paths/revenue.yaml b/openapi/paths/revenue.yaml index 783f957..f90e261 100644 --- a/openapi/paths/revenue.yaml +++ b/openapi/paths/revenue.yaml @@ -19,8 +19,8 @@ get: Defaults to 30 days ago if not provided. schema: type: string - format: date - example: '2026-01-01' + format: date-time + example: '2026-01-01T00:00:00Z' - name: endDate in: query required: false @@ -29,8 +29,8 @@ get: Defaults to current time if not provided. schema: type: string - format: date - example: '2026-01-31' + format: date-time + example: '2026-01-31T23:59:59Z' responses: '200': description: Revenue statistics retrieved successfully.