Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): return empty array for pins instead of null #4971

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gacevicljubisa
Copy link
Contributor

@gacevicljubisa gacevicljubisa commented Jan 31, 2025

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Ensures that GET /pins endpoint will now return empty array ({"references":[]}) instead of null ({"references":null}).

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

This change is important for consistency in API responses across different endpoints, ensuring that all endpoints return empty arrays instead of null when there are no items.

Related Issue (Optional)

GET /pins should return empty array instead of null when there are no items #4964

Screenshots (if appropriate):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GET /pins should return empty array instead of null when there are no items
3 participants