You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the a schema inside query params results in incorrect serialization.
The following path contains a query parameter named Coordinates that is defined by the schema Coordinates (a struct containing numerical values for longitude and latitude). According to the OpenAPI-Specification, query parameters should be serialized.
'/locations':
get:
tags:
- LocationsoperationId: searchLocationsdescription: | Searches for locations in the given range.parameters:
- in: queryname: Coordinatesrequired: trueexplode: trueschema:
$ref: '#/components/schemas/Coordinates'responses:
'200':
description: Successcontent:
application/json:
schema:
type: arrayitems:
$ref: '#/components/schemas/Location'maxItems: 100
Expected behavior
Generating this path and calling it from angular should result in a call to .../locations?longitude=51.412&latitude=12.4386.
Actual behavior
Generating this path and calling it from angular results in a call to .../locations?Coordinates=[object Object].
I'd be glad to help out if you could point me to where exactly this bug would need to be fixed.
The text was updated successfully, but these errors were encountered:
luisfpg
changed the title
Query Parameters are not serialized correctly
Implement parameter serialization according to the OpenAPI 3 specification
Mar 27, 2020
Using the a schema inside query params results in incorrect serialization.
The following path contains a query parameter named
Coordinates
that is defined by the schemaCoordinates
(a struct containing numerical values for longitude and latitude). According to the OpenAPI-Specification, query parameters should be serialized.Expected behavior
Generating this path and calling it from angular should result in a call to
.../locations?longitude=51.412&latitude=12.4386
.Actual behavior
Generating this path and calling it from angular results in a call to
.../locations?Coordinates=[object Object]
.I'd be glad to help out if you could point me to where exactly this bug would need to be fixed.
The text was updated successfully, but these errors were encountered: