Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: move extraInformation to meta #498

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

mkg20001
Copy link
Contributor

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

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
Copy link

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.

@PawelSuwinski PawelSuwinski requested review from PawelSuwinski and removed request for PawelSuwinski March 27, 2024 13:56
@PawelSuwinski PawelSuwinski self-assigned this Mar 27, 2024
@PawelSuwinski PawelSuwinski merged commit 4645fb5 into api-platform:main Mar 27, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants