Since there is some activity with json-rpc I have added some code we use for generating SMD-descriptions to json-rpc.lisp, in case it is useful. It is commented out since it is was only used inhouse and we never got around to add it properly to cl-json.
/Henrik
On 1/6/10 Jan 6 -7:44 AM, Henrik Hjelte wrote:
Since there is some activity with json-rpc I have added some code we use for generating SMD-descriptions to json-rpc.lisp, in case it is useful. It is commented out since it is was only used inhouse and we never got around to add it properly to cl-json.
I'm a little confused by this patch. It seems to assume that there is a lot of material associated with the JSON-RPC function name in the table *json-rpc-method-definitions*, in particular parameter lists.
But defun-json-rpc doesn't seem to cache these values....
Are you using a macro around defun-json-rpc, or an alternate version?
thanks, r
On Wed, Jan 6, 2010 at 4:35 PM, Robert Goldman rpgoldman@sift.info wrote:
I'm a little confused by this patch. It seems to assume that there is a lot of material associated with the JSON-RPC function name in the table *json-rpc-method-definitions*, in particular parameter lists.
But defun-json-rpc doesn't seem to cache these values....
Are you using a macro around defun-json-rpc, or an alternate version?
A macro wrapper for the specific project, but it should be possible to add the parameter info somewhere inside cl-json, perhaps in the hashtable for exposed functions that already exists. Sorry the code is not cleaned up..
/Henrik