Skip to content

Locator API responses not matching specification #191

@sliwinski-m-1

Description

@sliwinski-m-1

The Locator API: /api/locations/v3/search/availabilities/ returns responses which are not valid with Open API specification:

  1. OpenHours should be a string and usually it is returned as string but for some access points e.g. U82219798 it is an array:
    {
    "Day": "6",
    "OpenHours": [
    "900",
    "1400"
    ],
    "CloseHours": [
    "1330",
    "1800"
    ]
    }
  2. SpecialInstructions should be an object but sometimes it's returned as string.
Image Image
  1. Distance.UnitOfMeasurement should be an object but sometimes is returned as string when queried by specific access point:
Image Image

Could you please check the returned responses to be in line with the specification? It's causing issues when generating Java classes from the specification and then parsing the response. Some workarounds need to be done in order to use this API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions