Add a param converter and DTO for XB data model

Created on 26 November 2024, 9 days ago

Overview

Methods such as those in ClientServerConversionTrait have logic around converting incoming request bodies into Typed data objects but also mix in some validation results

Proposed resolution

Move this to a data transfer object that is built from a routing param converter
Make the param converter utilise the serializer component?
Then controllers can just typehint on the DTO as a param and the logic around routing and validation can be lifted out of the controller.
The data transfer (value) object can have ::isValid ::getViolations and ::getModel/::getLayout/::getTree as required

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Data model

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024