status-im / nim-json-rpc

Nim library for implementing JSON-RPC clients and servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rpc macro can't handle distinct types

jangko opened this issue · comments

currently there is no support for distinct types when we use rpc macro.
it would be handy to have this feature.
the well structured code of rpc macro related code will allow the implementation of this feature using some undistinct helper proc.

if someone decide to implement this feature, please make sure at least these areas are covered:

  • distinct types of basic data types and complex data types such as seq and object
  • object's field using distinct types from point 1
  • seq[T] where T is point 1
  • distinct types of distinct types, applied to point 1,2,3
  • proc return type using point 1,2,3,4

closing as it is not relevant anymore.
distinct types should not handled by rpc macro because it provides means to override default behavior.