Skip to content

Commit

Permalink
fix: spec for v2 GETs uses exploded deep objects in query params (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsafreno committed Oct 22, 2023
1 parent 13ad3ac commit 50c2952
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -825,11 +825,15 @@ paths:
type: string
- name: createdAt
in: query
style: deepObject
explode: true
schema:
$ref: '#/components/schemas/SearchableUnixSecondsInput'
description: Criteria to search by creation date
- name: metadata
in: query
style: deepObject
explode: true
schema:
$ref: '#/components/schemas/FilterableMetadataInput'
description: Criteria to search by metadata
Expand Down Expand Up @@ -914,8 +918,11 @@ paths:
description: The label to filter pipelines by
- in: query
name: slug
$ref: "#/components/schemas/SearchableStringInput"
style: deepObject
explode: true
description: The slug to filter pipelines by
schema:
$ref: "#/components/schemas/SearchableStringInput"
responses:
"200":
description: Pipelines retrieved successfully
Expand Down Expand Up @@ -954,7 +961,7 @@ components:
description: Timestamp in seconds since the UNIX epoch. Can be transformed into a Date object.

SearchableUnixSecondsInput:
anyOf:
oneOf:
- $ref: '#/components/schemas/UnixSeconds'
- type: object
properties:
Expand All @@ -972,7 +979,7 @@ components:
description: Date should be less than or equal to this value.

SearchableStringInput:
anyOf:
oneOf:
- type: string
- type: object
properties:
Expand Down

0 comments on commit 50c2952

Please sign in to comment.