Postponed
Project:
Drupal core
Version:
main
Component:
serialization.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Oct 2026 at 07:31 UTC
Updated:
30 Oct 2026 at 13:46 UTC
Jump to comment: Most recent
Comments
Comment #2
mglamanOne more item for the scope here.
FieldItemNormalizer::getNormalizationSchema()in JSON:API still has a branch for class names:Once
getJsonSchema()only accepts objects, nothing reaches this branch. Remove it and let theassert($object instanceof FieldItemInterface)below it do the work.Also, #3627338 ended up deprecating any non-object, not only arrays. The summary should say that, and the
!is_object()check with itstrigger_error()inJsonSchemaProviderSerializerTrait::getJsonSchema()goes away along with the test.Generated with the help of an LLM.
Comment #3
dries commentedUpdated the issue summary per #2 and the latest changes in #3627338.