api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
480 stars 130 forks source link

refactor: move extraInformation to meta #498

Closed mkg20001 closed 5 months ago

mkg20001 commented 1 year ago
Q A
Branch? main
Tickets #...
License MIT
Doc PR

The *Params datatypes have a meta field that can be filled with any value as necesarry for the dataprovider, see UpdateParams here https://github.com/marmelab/react-admin/blob/master/packages/ra-core/src/types.ts#L189-L194

It's better to use this value instead of polluting the data object

primal100 commented 1 year ago

This is a priority also because it is only removed before sending in the hydra dataProvider. With OpenAPI, extraInformation is sent with the request which is then rejected on the server side because of the additonal field.