Skip to content

Conversation

@priethor
Copy link
Contributor

What

Fixes post type schema validation and adds test coverage for edge cases.

Why

  • The schema was too restrictive for menu_position (should accept null, empty string, or integer)
  • The taxonomies field validation was changed from oneOf to anyOf for more flexible validation, as an empty string could match both
  • Lacked test coverage for edge cases with empty/null values

Testing Instructions

  1. Run composer test:php to verify all post type schema tests pass
  2. Confirm 27 tests pass with 60 assertions

@priethor priethor self-assigned this Nov 10, 2025
@priethor priethor added the [Type] Bug Something isn't working label Nov 10, 2025
@priethor priethor merged commit c360919 into trunk Nov 10, 2025
5 checks passed
@cbravobernal cbravobernal added this to the 6.6.0 milestone Nov 12, 2025
@priethor priethor deleted the fix/post-type-schema branch November 26, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants