Skip to content

Ignore invalid Resource arrays#116

Open
n7studios wants to merge 2 commits intomainfrom
ignore-invalid-resource-arrays
Open

Ignore invalid Resource arrays#116
n7studios wants to merge 2 commits intomainfrom
ignore-invalid-resource-arrays

Conversation

@n7studios
Copy link
Copy Markdown
Contributor

Summary

Return false when using the exist method when the array of resource data is a flat array, which isn't the structure used for any resources in any Plugins since 2022.

Implemented in this PR.

Testing

  • testGetByWithInvalidResourceData: Tests that the get_by() function returns false when queried with invalid resource data.
  • testExistWithInvalidResourceData: Tests that the exist() function returns false when queried with invalid resource data.

Checklist

@n7studios n7studios self-assigned this Apr 16, 2026
@n7studios n7studios added the bug Something isn't working label Apr 16, 2026
@n7studios n7studios requested review from a team, ciccio-kit and noelherrick and removed request for a team April 16, 2026 08:06
@n7studios n7studios marked this pull request as ready for review April 16, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant