You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This expands on spiral/validation#4 and develops on the idea of working with relations before they reach the domain/persistence layer.
Simple example: an order form where users select their existing address, and application sends address_id to the API. OrderRequest schema indicates that address_id field is of Address entity and it must exist.
After the validation $request->toArray() should return populated address (a schema key) field with an object of Address.
CycleInterceptor is a significant boost to productivity, I believe this would also help streamlining all the tedious routine involving cleaning up and populating relations from forms.
The text was updated successfully, but these errors were encountered:
…component (#87)
* Adds EntityCaster for spiral/filters component
fixes#75
* Fixes unit tests
* Add error suppression for cases when invalid data is used for entity retrieval.
This expands on spiral/validation#4 and develops on the idea of working with relations before they reach the domain/persistence layer.
Simple example: an order form where users select their existing address, and application sends
address_id
to the API.OrderRequest
schema indicates thataddress_id
field is ofAddress
entity and it must exist.After the validation
$request->toArray()
should return populatedaddress
(a schema key) field with an object ofAddress
.CycleInterceptor
is a significant boost to productivity, I believe this would also help streamlining all the tedious routine involving cleaning up and populating relations from forms.The text was updated successfully, but these errors were encountered: