-
Notifications
You must be signed in to change notification settings - Fork 178
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
Non-standard JSON-RPC request fields #797
Comments
all right, I see. Do you know if there's any documentation about these extra fields and what the other servers does with that information? We could also just remove |
Unforntunately I couldn't find any. I believe in some server implementation there is some cache for response payloads, and this
I agree, discriminating valid and invalid non-standard fields will likely become a problem (what is a valid non-standard field anyway?) Removing |
Closed by #803 |
Some http providers by default include non-standard fields (i.e.
skipCache
) in the request. This results inInvalid Request
as theRequest
explicitly denies deserialization of unknown fields.To support this type of requests on
jsonrpsee
, some options:Request
to allow accepting specific non-standard fields. This generic must implementDeserialize
, represented as a flatten field inRequest
, and default to an empty type, something like:deny_unknown_fields
behind a feature flag, which will optionally accept any non-standard field.The text was updated successfully, but these errors were encountered: