briandilley / jsonrpc4j

JSON-RPC for Java
MIT License
1.05k stars 438 forks source link

added support for fixed parameters via annotation #282

Open oak opened 2 years ago

oak commented 2 years ago

I had the need in a project to include some fixed parameters in some method requests in addition to rpc method's named parameters.

Since it may be of use for others and a simple addition to the parameter processing, I have included the needed changes in this pull request, along with tests and a documentation update.

briandilley commented 1 year ago

I feel like this may be better implemented as a defaultValue and an optional fixed parameters on the existing annotation