Skip to content

Commit

Permalink
fix(api): use explode=true for array query params
Browse files Browse the repository at this point in the history
  • Loading branch information
tothandras committed Jan 22, 2025
1 parent a7e7348 commit 95d12bc
Show file tree
Hide file tree
Showing 12 changed files with 1,655 additions and 1,630 deletions.
1,584 changes: 792 additions & 792 deletions api/api.gen.go

Large diffs are not rendered by default.

1,588 changes: 794 additions & 794 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

28 changes: 20 additions & 8 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ paths:
pattern: ^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
description: ULID (Universally Unique Lexicographically Sortable Identifier).
example: 01G65Z755AFWAKHE12NY0CQ9FH
explode: false
- $ref: '#/components/parameters/Pagination.page'
- $ref: '#/components/parameters/Pagination.pageSize'
- $ref: '#/components/parameters/LimitOffset.offset'
Expand Down Expand Up @@ -974,7 +973,6 @@ paths:
$ref: '#/components/schemas/InvoiceExpand'
default:
- lines
explode: false
- name: includeDeletedLines
in: query
required: false
Expand Down Expand Up @@ -1749,7 +1747,6 @@ paths:
type: array
items:
$ref: '#/components/schemas/BillingProfileExpand'
explode: false
- $ref: '#/components/parameters/Pagination.page'
- $ref: '#/components/parameters/Pagination.pageSize'
- $ref: '#/components/parameters/LimitOffset.offset'
Expand Down Expand Up @@ -1940,7 +1937,6 @@ paths:
type: array
items:
$ref: '#/components/schemas/BillingProfileExpand'
explode: false
responses:
'200':
description: The request has succeeded.
Expand Down Expand Up @@ -2407,6 +2403,7 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
responses:
'200':
description: The request has succeeded.
Expand Down Expand Up @@ -2888,6 +2885,7 @@ paths:
schema:
type: string
format: date-time
explode: false
- name: ingestedAtTo
in: query
required: false
Expand All @@ -2898,6 +2896,7 @@ paths:
schema:
type: string
format: date-time
explode: false
- name: hasError
in: query
required: false
Expand All @@ -2909,6 +2908,7 @@ paths:
If provided with false, only list events without processing error.
schema:
type: boolean
explode: false
- name: id
in: query
required: false
Expand All @@ -2918,6 +2918,7 @@ paths:
Accepts partial ID.
schema:
type: string
explode: false
- name: subject
in: query
required: false
Expand All @@ -2927,6 +2928,7 @@ paths:
Accepts partial subject.
schema:
type: string
explode: false
- name: from
in: query
required: false
Expand All @@ -2937,6 +2939,7 @@ paths:
schema:
type: string
format: date-time
explode: false
- name: to
in: query
required: false
Expand All @@ -2947,6 +2950,7 @@ paths:
schema:
type: string
format: date-time
explode: false
- name: limit
in: query
required: false
Expand All @@ -2956,6 +2960,7 @@ paths:
minimum: 1
maximum: 100
default: 100
explode: false
responses:
'200':
description: The request has succeeded.
Expand Down Expand Up @@ -4534,6 +4539,7 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
- name: to
in: query
required: false
Expand All @@ -4544,6 +4550,7 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
- name: feature
in: query
required: false
Expand Down Expand Up @@ -6711,6 +6718,7 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
responses:
'200':
description: The request has succeeded.
Expand Down Expand Up @@ -6922,6 +6930,7 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
- name: to
in: query
required: false
Expand All @@ -6932,19 +6941,22 @@ paths:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
- name: windowSize
in: query
required: true
description: Windowsize
schema:
$ref: '#/components/schemas/WindowSize'
explode: false
- name: windowTimeZone
in: query
required: false
description: The timezone used when calculating the windows.
schema:
type: string
default: UTC
explode: false
responses:
'200':
description: The request has succeeded.
Expand Down Expand Up @@ -7708,7 +7720,6 @@ components:
pattern: ^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
description: ULID (Universally Unique Lexicographically Sortable Identifier).
example: 01G65Z755AFWAKHE12NY0CQ9FH
explode: false
InvoiceListParams.expand:
name: expand
in: query
Expand All @@ -7718,7 +7729,6 @@ components:
type: array
items:
$ref: '#/components/schemas/InvoiceExpand'
explode: false
InvoiceListParams.extendedStatuses:
name: extendedStatuses
in: query
Expand All @@ -7728,7 +7738,6 @@ components:
type: array
items:
type: string
explode: false
InvoiceListParams.includeDeleted:
name: includeDeleted
in: query
Expand Down Expand Up @@ -7766,7 +7775,6 @@ components:
type: array
items:
$ref: '#/components/schemas/InvoiceStatus'
explode: false
InvoiceOrderByOrdering.order:
name: order
in: query
Expand Down Expand Up @@ -7847,6 +7855,7 @@ components:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
MeterQuery.groupBy:
name: groupBy
in: query
Expand Down Expand Up @@ -7879,13 +7888,15 @@ components:
type: string
format: date-time
example: '2023-01-01T01:01:01.001Z'
explode: false
MeterQuery.windowSize:
name: windowSize
in: query
required: false
description: If not specified, a single usage aggregate will be returned for the entirety of the specified period for each subject and group.
schema:
$ref: '#/components/schemas/WindowSize'
explode: false
MeterQuery.windowTimeZone:
name: windowTimeZone
in: query
Expand All @@ -7896,6 +7907,7 @@ components:
schema:
type: string
default: UTC
explode: false
NotificationChannelOrderByOrdering.order:
name: order
in: query
Expand Down
Loading

0 comments on commit 95d12bc

Please sign in to comment.