-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Following the goal of simplifying Data Object creation, we should also automatically instantiate nested properties that are, themselves, Data Objects.
When a parent Data Object is created, any singular property that is typed as another Data Object should be automatically instantiated. This will prevent common null errors and save developers from having to manually initialize every nested object.
In order to provide full control to developers and possible infinite loops, the DataObjectDescriptor should define the instantiating strategy to adopt for any singular Data Object properties.
Acceptance Criteria:
- When a new Data Object (e.g.,
new Order()) is created, its singular Data Object properties (e.g.,Order.ShippingAddress) are automatically instantiated and are not null. - The
DataObjectDescriptoris updated to include a "Loading" attribute for relevant properties.
Goal:
- Reduce boilerplate code for nested object initialization.
- Improve developer experience by preventing common null reference errors.
Metadata
Metadata
Assignees
Labels
No labels