Skip to content

Fix getAccount endpoint response type from array to single account object #567

Open
@CalebBarnes

Description

@CalebBarnes

Issue Description

The getAccount endpoint in the OpenAPI spec is incorrectly documented as returning an array of accounts, but it actually returns a single account object.

Current Behavior

The OpenAPI spec shows:

type: array

Reference: https://open-api.netlify.com/#tag/accountMembership/operation/getAccount

Expected Behavior

The endpoint should be documented as returning a single Account object, not an array.

Context

This discrepancy was identified during development work where the actual API response returns a single account object, but the generated types and documentation suggest it returns an array. This causes confusion for developers using the API and can lead to incorrect implementation.

Solution

Update the OpenAPI specification to correctly reflect that the getAccount endpoint returns a single account object rather than an array of accounts.

Related

Similar issue was previously fixed for getCurrentUser in #557.

Metadata

Metadata

Assignees

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