Skip to content

Inconsistency in primary key data types for POST to /exports #52

@chambbj

Description

@chambbj

GRiD-API/swagger.v3.yaml

Lines 344 to 354 in 46b84ec

- name: aoi
in: formData
description: The primary key of the AOI used to export from.
required: true
type: integer
- name: products
in: formData
description: |
A comma-separated list of product primary keys to include in the export.
required: true
type: string

The products parameter must be passed as a string to facilitate comma-separated specification of multiple product exports. On the other hand, the aoi parameter is an integer. Feels awkward and perhaps error prone to sometimes expect integer, other times strings. An alternative could be to pass an array of product pks.

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