93064[FEATURE] Introduce JSON SchemaBuilder and Schema based Hydrator
Commit message
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 27
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/64/93064/27 && git checkout FETCH_HEAD - Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/64/93064/27 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Relation chain 19
- main 92721[WIP][BUGFIX] Fix referrer for login redirect
- main 88507[WIP][FEATURE] AI suggest demo using tools API
-
main
93527[BUGFIX] Avoid invalidly showing login form when opening a shared link
The chain has patch set 3 of 9, the changes above it need a rebase.
-
main
95448[TASK] Add missing PATCH HTTP verb @typo3/core/ajax/ajax-request.js
The chain has patch set 1 of 3, the changes above it need a rebase.
- main 92724[WIP][FEATURE] Implement OAuth authorization server
-
main
92323[TASK] Avoid `json_encode()` workarounds in Settings API
The chain has patch set 8 of 10, the changes above it need a rebase.
- main 92224[WIP][FEATURE] Implement MCP Server based on Actions API
- main 92322[WIP][TASK] Migrate Dashboard to Actions API
- main 97327[WIP][TASK] Migrate file storage tree to Actions API
- main 92191[WIP][TASK] Migrate PageTree to Action API
- main 93599[WIP][TASK] Migrate resource endpoints to Actions API
- main 92223[TASK] Provide AI tool provider based on Actions API
- main 92197[WIP][FEATURE] Provide Record Actions
- main 92196[WIP][TASK] Add Record DTO, Schema and Serializer
- main 91486[FEATURE] Implement API Hub
- main 93423[FEATURE] Implement standalone redirect route option
- main 91666[TASK] Provide OpenAPI spec w/ Swagger UI for Actions API
- main 91563[FEATURE] Introduce Action API
-
93064 [FEATURE] Introduce JSON SchemaBuilder and Schema based Hydrator This change
Issues 1
Files 20
- typo3/sysext/core/Classes/Attribute/Serialization/DynamicSerializationSchema.phpnew+21 −0
- typo3/sysext/core/Classes/Attribute/Serialization/IntersectWithParent.phpnew+28 −0
- typo3/sysext/core/Classes/JsonSchema/DynamicSchemaProviderInterface.phpnew+31 −0
- typo3/sysext/core/Classes/JsonSchema/DynamicSchemaProviderRegistry.phpnew+60 −0
- typo3/sysext/core/Classes/JsonSchema/Hydrator.php2new+221 −0
- typo3/sysext/core/Classes/JsonSchema/ResolvingSchema.phpnew+88 −0
- typo3/sysext/core/Classes/JsonSchema/Schema.phpnew+256 −0
- typo3/sysext/core/Classes/JsonSchema/SchemaBuilder.phpnew+378 −0
- typo3/sysext/core/Classes/JsonSchema/SchemaException.phpnew+22 −0
- typo3/sysext/core/Classes/JsonSchema/SchemaNarrower.phpnew+130 −0
- typo3/sysext/core/Classes/JsonSchema/SchemaStore.phpnew+115 −0
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-109428-IntroduceJSONSchemaBuilderAndSchemaBasedHydrator.rstnew+78 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/Fixtures/Schema/CircularObjectFixture.phpnew+28 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/Fixtures/Schema/DateTimePropertyFixture.phpnew+34 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/Fixtures/Schema/GenericObjectFixture.phpnew+32 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/Fixtures/Schema/SimpleObjectFixture.phpnew+29 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/HydratorTest.php4new+334 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/SchemaBuilderTest.phpnew+431 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/SchemaNarrowerTest.phpnew+148 −0
- typo3/sysext/core/Tests/Unit/JsonSchema/SchemaStoreTest.phpnew+61 −0
Review log 4068
Show 2743 earlier messages
-
Benjamin Franzke uploaded patch set 1 03/04/26, 14:12
-
Benjamin Franzke wrote 03/04/26, 14:15
Hashtag added: actions -
core-ci voted on patch set 1 V +1 03/04/26, 14:23 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97329
-
Benjamin Franzke uploaded patch set 2
V +103/05/26, 07:27 -
core-ci voted on patch set 2 V -1 03/05/26, 07:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97387
-
Benjamin Franzke uploaded patch set 3
V -103/12/26, 21:14 -
core-ci voted on patch set 3 V -1 03/12/26, 21:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97849
-
Benjamin Franzke uploaded patch set 4
V -103/22/26, 07:29 -
core-ci voted on patch set 4 V +1 03/22/26, 08:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98375
-
Benjamin Franzke rebased onto patch set 5
V +103/27/26, 20:09 -
core-ci voted on patch set 5 V +1 03/27/26, 20:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/98914
-
Benjamin Franzke uploaded patch set 6
V +103/30/26, 15:25 -
core-ci voted on patch set 6 V +1 03/30/26, 15:40 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99088
-
Nikita Hovratov commented on patch set 6 03/30/26, 15:43
HydratorTest.php:73leftover debug -
Nikita Hovratov commented on patch set 6 03/30/26, 15:44
HydratorTest.php:29here too -
Benjamin Franzke marked it work in progress 03/30/26, 15:49
-
Benjamin Franzke uploaded patch set 7
V +103/30/26, 15:52 -
Benjamin Franzke commented on patch set 6 03/30/26, 15:52
This change is not ready (too many TODOs), setting back to WIP for now.HydratorTest.php:29ReplyDoneHydratorTest.php:73ReplyRemoved, thanks. -
Nikita Hovratov commented on patch set 6 03/30/26, 15:52
Hydrator.php:27Where is this method used? -
Stefan Bürk commented on patch set 6 03/30/26, 15:55
Not getting the big and full picture on a quick peak, so forgive me the following question mainly because it has not been answered and i'm not getting the schema part of it (yet): Using a component was not an option for example `symfony/serializer`[1], which has mapping from json to objects and vice virsa on board with a broad variaty of php attributes to controll that on board ? Okay, that we do not want huge libs out of control like JMSSerializer and simular. And symonfy has newer components also like transformators and simular ? Albeit that is intended as internal task for now, I'm still want to know if in long term it is reasonable to maintain such a thing on our own again if there are possible componets of a already used framework. At least on a first look. [1] https://github.com/symfony/serializer Not blocking this - just wanted to be enlighted to avoid dying dump. -
core-ci voted on patch set 7 V +1 03/30/26, 16:02 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99090
-
Oliver Hader commented on patch set 7 03/30/26, 19:53
Reply
Serializing/Deserializing (aka Hydration) is only one aspect here. The more prominent aspect is the JSON-Schema part - thus, converting a concept (e.g. class) into an exposable JSON-Schema. This then can be used by other external actors to understand the capabilities of a particular service. One use-case might be the use of AI platforms, defining the expected response schema - or the disposal of an MCP endpoint (or just AI "tool call") that exposes its interfaces via the schema. -
Stefan Bürk commented on patch set 7 03/31/26, 09:17
Reply
Thanks for the explanation, that was the part I missed. -
Benjamin Franzke commented on patch set 7 04/01/26, 13:25
Reply
Thanks Stefan, That is a pretty good question which I was asking myself all the time. My main problem with `symfony/serializer` was that I can not build a Schema that does *exactly* reflect what `symfony/serializer` *will* produce. We've seen that symfony/ai introduces similar functionality (has similar demands because their AI Tools also need schema + hydration + serialization): https://github.com/symfony/ai/pull/1683 I'd be fine to use any alternative and would "hope" to replace this implementation by a library if ever possible. I tried to use `symfony/type-info` to use as much abstraction as possible to avoid having to build that on our own as well. Anyway, I'm open for pointers for alternative libs if you know any. This is indeed not an "easy" decision, I agree… -
Benjamin Franzke rebased onto patch set 8
V +104/02/26, 13:32 -
core-ci voted on patch set 8 V +1 04/02/26, 13:46 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99489
-
Benjamin Franzke uploaded patch set 9
V +104/08/26, 11:54 -
core-ci voted on patch set 9 V +1 04/08/26, 12:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99762
-
Benjamin Franzke uploaded patch set 10
V +104/09/26, 06:20 -
core-ci voted on patch set 10 V +1 04/09/26, 06:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99815
-
Benjamin Franzke rebased onto patch set 11
V +104/09/26, 08:40 -
core-ci voted on patch set 11 V +1 04/09/26, 08:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99825
-
Benjamin Franzke uploaded patch set 12
V +104/10/26, 12:59 -
core-ci voted on patch set 12 V -1 04/10/26, 13:09 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99923
-
Benjamin Franzke uploaded patch set 13
V -104/11/26, 05:30 -
core-ci voted on patch set 13 V +1 04/11/26, 05:40 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99949
-
Benjamin Franzke rebased onto patch set 14
V +104/20/26, 06:45 -
core-ci voted on patch set 14 V +1 04/20/26, 07:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/100511
-
Benjamin Franzke rebased onto patch set 15
V +106/29/26, 12:55 -
core-ci voted on patch set 15 V -1 06/29/26, 13:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104028
-
Benjamin Franzke uploaded patch set 16
V -106/29/26, 13:28 -
core-ci voted on patch set 16 V +1 06/29/26, 13:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/104034
-
Benjamin Franzke rebased onto patch set 17
V +108/27/26, 08:50
-
core-ci voted on patch set 17 V +1 08/27/26, 09:03 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107231
-
Benjamin Franzke uploaded patch set 18
V +109/09/26, 11:50 -
core-ci voted on patch set 18 V +1 09/09/26, 12:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108163
-
Benjamin Franzke uploaded patch set 19
V +109/16/26, 12:48 -
core-ci voted on patch set 19 V +1 09/16/26, 12:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108677
-
Benjamin Franzke uploaded patch set 20
V +109/22/26, 09:45 -
core-ci voted on patch set 20 V -1 09/22/26, 09:59 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108979
-
Benjamin Franzke uploaded patch set 21
V -109/22/26, 10:01 -
core-ci voted on patch set 21 V -1 09/22/26, 10:23 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108983
-
core-ci voted on patch set 21 V +1 09/22/26, 10:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/108983
-
Benjamin Franzke uploaded patch set 22
V +110/13/26, 08:13 -
Benjamin Franzke commented on patch set 22 10/13/26, 08:13
Hydrator.php:27ReplyIt is used by following patches in the relation chain, see: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91563/47/typo3/sysext/core/Classes/Action/RouteHandler.php#167 -
core-ci voted on patch set 22 V +1 10/13/26, 08:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110987
-
Benjamin Franzke uploaded patch set 23
V +110/13/26, 08:27 -
Benjamin Franzke commented on patch set 23 10/13/26, 08:27
Reply
I'd like to keep it as is (as discussed on friday), hope that's fine with you.Reply
Done -
core-ci voted on patch set 23 V +1 10/13/26, 08:35 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/110988
-
Benjamin Franzke marked it work in progress 10/13/26, 09:26
-
Benjamin Franzke uploaded patch set 24
V +110/14/26, 08:46 -
core-ci voted on patch set 24 V +1 10/14/26, 08:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111059
-
Benjamin Franzke uploaded patch set 25
V +110/28/26, 13:44 -
core-ci voted on patch set 25 V +1 10/28/26, 13:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112716
-
Benjamin Franzke rebased onto patch set 26
V +111/03/26, 20:11 -
core-ci voted on patch set 26 V +1 11/03/26, 20:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113218
-
Benjamin Franzke uploaded patch set 27
V +111/04/26, 16:04 -
core-ci voted on patch set 27 V +1 11/04/26, 16:30 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113290