Skip to content

Conversation

@priethor
Copy link
Contributor

What

Adds a schema for internal fields that SCF uses for its entities and applies it to Post Type abilities's output schemas where required.

Why

  • Output schemas for CREATE/UPDATE/DUPLICATE/IMPORT were missing internal fields (ID, _valid, local) that are actually returned.
  • It applies to Post Types, but it will be reused for other entities
  • Importing also supports the ID to overwrite an existing Post Type

Testing Instructions

  1. Run composer test:php to verify schema validation tests pass
  2. Run post type abilities and verify they now don't return an error

@priethor priethor self-assigned this Nov 10, 2025
@priethor priethor added the [Type] Bug Something isn't working label Nov 10, 2025
@priethor priethor force-pushed the fix/add-internal-fields-to-post-type-schemas branch from 0db5a30 to 07216e8 Compare November 10, 2025 16:34
@priethor priethor merged commit 204d972 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/add-internal-fields-to-post-type-schemas 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