{"action":"created","issue":{"url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/238","repository_url":"https://api.github.com/repos/briandilley/jsonrpc4j","labels_url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/238/comments","events_url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/238/events","html_url":"https://github.com/briandilley/jsonrpc4j/issues/238","id":383524413,"node_id":"MDU6SXNzdWUzODM1MjQ0MTM=","number":238,"title":"Named param(@JsonRpcParam) does not work.","user":{"login":"saintping","id":4252571,"node_id":"MDQ6VXNlcjQyNTI1NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/4252571?v=4","gravatar_id":"","url":"https://api.github.com/users/saintping","html_url":"https://github.com/saintping","followers_url":"https://api.github.com/users/saintping/followers","following_url":"https://api.github.com/users/saintping/following{/other_user}","gists_url":"https://api.github.com/users/saintping/gists{/gist_id}","starred_url":"https://api.github.com/users/saintping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saintping/subscriptions","organizations_url":"https://api.github.com/users/saintping/orgs","repos_url":"https://api.github.com/users/saintping/repos","events_url":"https://api.github.com/users/saintping/events{/privacy}","received_events_url":"https://api.github.com/users/saintping/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-22T12:56:12Z","updated_at":"2018-11-22T13:48:42Z","closed_at":null,"author_association":"NONE","body":"I Write a simple “hello wolrd“ program like example showed at https://github.com/briandilley/jsonrpc4j/wiki/JSON-RPC-for-Java-Client-&-Spring-Boot-(Server-example).\r\nMy project environment is Spring boot 2.1.0 + Jsonrpc4j 1.5.3, run in JVM 1.8.0. It's work ok under \"indexed param\" pattern.\r\n```\r\n$ curl -H \"Content-Type: application/json\" -d '{\"id\":\"1\",\"jsonrpc\":\"2.0\",\"method \":\"hello\",\"params\":[\"matthew\"]}' http://localhost:8080/test/jsonrpc\r\n{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"result\":\"hello matthew\"}\r\n```\r\n\r\nBut when i switch to \"named param\" pattern as following:\r\n```\r\n@JsonRpcService(\"/test/jsonrpc\")\r\npublic interface IBrokerRpc {\r\n    // TODO: DO NOT WORK. @JsonRpcParam(value = \"name\")\r\n    String hello(@JsonRpcParam(value = \"name\") String name);\r\n}\r\n```\r\nI get an client error:\r\n```\r\n$ curl -H \"Content-Type: application/json\" -d '{\"id\":\"1\",\"jsonrpc\":\"2.0\",\"method \":\"hello\",\"params\":{\"name\":\"matthew\"}}' http://localhost:8080/test/jsonrpc\r\n{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"error\":{\"code\":-32602,\"message\":\"method parameters in valid\"}}\r\n```\r\nWhat is wrong? or do i need some other setting to support \"named param\"?\r\n\r\nBest Regards.\r\n"},"comment":{"url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/comments/441036155","html_url":"https://github.com/briandilley/jsonrpc4j/issues/238#issuecomment-441036155","issue_url":"https://api.github.com/repos/briandilley/jsonrpc4j/issues/238","id":441036155,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTAzNjE1NQ==","user":{"login":"saintping","id":4252571,"node_id":"MDQ6VXNlcjQyNTI1NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/4252571?v=4","gravatar_id":"","url":"https://api.github.com/users/saintping","html_url":"https://github.com/saintping","followers_url":"https://api.github.com/users/saintping/followers","following_url":"https://api.github.com/users/saintping/following{/other_user}","gists_url":"https://api.github.com/users/saintping/gists{/gist_id}","starred_url":"https://api.github.com/users/saintping/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saintping/subscriptions","organizations_url":"https://api.github.com/users/saintping/orgs","repos_url":"https://api.github.com/users/saintping/repos","events_url":"https://api.github.com/users/saintping/events{/privacy}","received_events_url":"https://api.github.com/users/saintping/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T13:48:42Z","updated_at":"2018-11-22T13:48:42Z","author_association":"NONE","body":"I add the Annotation @JsonRpcParam(value = \"name\") also on “hello” method in implement class.\r\nAnd then it works.\r\n@Service\r\n```\r\n@AutoJsonRpcServiceImpl\r\npublic class BrokerRpc implements IBrokerRpc {\r\n    @Override\r\n    public String hello(@JsonRpcParam(value = \"name\") String name) {\r\n        return \"hello \" + name;\r\n    }\r\n}\r\n```\r\nBut, i think it's not essential.\r\n"}}
{"actor":{"display_login":"saintping"}}