Drupal 12.1 Proposals Target Shared Data Contracts for AI and Workflows
Core contributors are developing a series of changes for Drupal 12.1 that could establish more consistent data contracts between Drupal, AI tools, workflow engines and external applications. Five related draft change records dated between 20 and 30 November 2026 address limitations in the Typed Data API and serialisation system. A counterproposal submitted on 3 December shows that contributors are still determining how to introduce these capabilities without disrupting existing applications.
The proposals address an underlying problem in Drupal's architecture. Applications can exchange correctly formatted JSON data while disagreeing about whether that data is valid. When Drupal's internal validation rules differ from the machine-readable schema supplied to an external application, developers cannot rely on that schema alone. Contributed projects have already encountered this problem and implemented their own solutions.
Drupal founder Dries Buytaert identified the validation work as foundational to Rosetta in a core issue discussion on 10 November. The connection follows his October demonstration of reusable Drupal operations across AI assistants, application programming interfaces and workflow systems. Reusing an operation across several interfaces requires a consistent definition of its accepted inputs and expected outputs.
Contributed Projects Encounter Core Validation Limitations
Core contributor Michael Lander documented an example involving Canvas Tools. Its component schema operation failed for components without slots because Drupal rejected the required but empty collection of slots. Although the operation returned the expected property, the validator treated its empty value as null. Michael also reported that Tool API has distinguished between required, nullable and empty data since its beta10 release, providing an existing implementation that could inform changes in core.
Similar requirements have emerged in FlowDrop. Project maintainer Shibin Das explained on 23 November that FlowDrop independently converts typed data maps into JSON Schema to generate node configuration forms and check connections between workflow nodes. He also identified the need for list schemas that describe accepted item types before any actual values exist. Core support for these capabilities could replace portions of FlowDrop's conversion logic.
Extending Drupal's JSON Schema Support
Drupal 11.2 introduced the ability for primitive data types to describe their normalised output through JSON Schema, a standard for describing the structure and constraints of JSON data. General typed data maps and lists, however, still lack equivalent schema support. Core contributor Matt Glaman opened separate issues addressing these limitations on 1 October 2026. The resulting proposals describe map properties and their requirements, along with list item definitions and constraints, in a form that other applications can interpret.
Two additional proposals would allow data definitions to declare default values and example values. Defaults could help applications initialise inputs, while examples could show developers and AI agents what an expected value looks like. Examples would remain descriptive metadata rather than validation rules. Exposing defaults and examples through JSON Schema requires additional changes to Drupal's serialisation system.
Separating Required, Null and Empty Values
Core contributor Wim Leers authored a draft change record dated 30 November addressing a more fundamental validation limitation. Drupal's Typed Data API currently combines several conditions under its required-value setting: whether a property must be supplied, whether its value may be null and whether a collection may be empty. JSON Schema treats these conditions independently. The difference becomes consequential when an application needs to distinguish an omitted instruction from an explicitly empty value.
Dries illustrated this distinction in the core issue discussion using an operation that updates the tags associated with a content item. Omitting the tags property should produce a validation error, while supplying an empty list should allow the operation to remove all existing tags. Drupal's current validation behaviour rejects both. Another related core issue concerns the opposite problem: validation can skip the required properties of a map when the map itself is empty.
Backward Compatibility Remains Under Discussion
Resolving these discrepancies also requires preserving the behaviour of existing Drupal applications. Required entity fields, for example, must continue to reject values that do not satisfy their content requirements. The current draft proposes different validation modes to accommodate existing behaviour while introducing more precise handling of null and empty values. Contributors are discussing how these distinctions should be represented without creating undesirable dependencies between the Typed Data API and Entity Field API.
On 3 December, Michael Lander proposed using separate validation constraints instead of strict and loose modes. Under his alternative, Drupal 13 would restrict the existing NotNull constraint to rejecting explicit null values, while collection size and emptiness would be handled through other constraints. His proposal includes transitional mechanisms for Drupal 12.1. The discussion remains unresolved.
The potential applications extend beyond the projects participating directly in the issue discussions. Contributors identify Single Directory Components, ECA, Maestro, Model Context Protocol integrations, n8n and JavaScript frontends as possible consumers of more consistent data definitions. The documented experiences of Tool API, Canvas Tools and FlowDrop demonstrate why these capabilities matter independently of any future adoption by those projects.
The five change records identify Drupal 12.1 as their target release, but remain in draft status. Their implementation would bring Drupal closer to generating reusable data descriptions from core APIs rather than requiring each integration to reconstruct them independently. The final scope depends on resolving the outstanding validation and backward compatibility questions, as well as completing the associated reviews.
References
-
ListNormalizer does not provide a JSON Schema for lists | Drupal.org (1 October 2026)
-
Typed data definitions distinguish required, nullable and empty | Drupal.org (30 November 2026)


