Description
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.