explodinglabs / jsonrpcserver

Process incoming JSON-RPC requests in Python
MIT License
186 stars 40 forks source link

method decorator does not work with custom dict anymore in v5.0.9 #261

Closed ManuelEibl closed 1 year ago

ManuelEibl commented 1 year ago

According to the doc string of methods.py:method it should be possible to pass a methods dict instead of using the global one: "The global_methods dict will be used by default unless a methods argument is passed to dispatch."

However, there is no parameter for that. When having versioned APIs though, this can be vital to not only be able to use one global set of methods but have one set per API version.