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

Empty properties are not ignored when performing post type discovery #756

Closed
paulrobertlloyd opened this issue Aug 20, 2024 · 0 comments · Fixed by #757
Closed

Empty properties are not ignored when performing post type discovery #756

paulrobertlloyd opened this issue Aug 20, 2024 · 0 comments · Fixed by #757
Assignees
Labels
bug Something isn't working plugin-endpoint Endpoint plug-in
Milestone

Comments

@paulrobertlloyd
Copy link
Collaborator

paulrobertlloyd commented Aug 20, 2024

Description of the bug

The following incoming properties:

{
  "type": "entry",
  "name": "",
  "content": "Note content",
}

are perceived to be that of an article post type, even though there is in effect no title.

Steps to reproduce

No response

Expected behaviour

Empty properties should be ignored.

Environment

  • Indiekit version 1.0.0-beta.17

Additional context

Added a unit test for this use case, and am seeing the issue as reported to me by @gerwitz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin-endpoint Endpoint plug-in
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant