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.