Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-02-01 Thread Simon Ameis
Hello Michael, as the bugtracker is still not reachable, I'll send you my patch via the mailing list. As you suggested, there is a new option jroIgnoreExtraFields to ignore extra fields in the parameter objets. Objects in arrays are now validated against ParamDefs the same way a single object

Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-28 Thread Michael Van Canneyt
On Tue, 28 Jan 2020, Simon Ameis wrote: It is mising, but not forgotten; I have it on my todo list still, together with some other items for JSON-RPC If you feel like implementing some rudimentary checks, please feel free. Let me see, what I can do next week. At least some checks if a

Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-28 Thread Simon Ameis
> It is mising, but not forgotten; I have it on my todo list still, > together > with some other items for JSON-RPC > If you feel like implementing some rudimentary checks, please feel free. Let me see, what I can do next week. At least some checks if a parameter object has the required

Re: [fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-27 Thread Michael Van Canneyt
On Tue, 28 Jan 2020, Simon Ameis wrote: Hello all, is it correct, that TJSONRPCHandler only checks for parameter beeing object or array (according to TJSONRPCHandler.Options) or should it also check for individual parameters according to ParamDefs? For the latter I didn't find any

[fpc-pascal] Parameter Checking in fpjsonrpc

2020-01-27 Thread Simon Ameis
Hello all, is it correct, that TJSONRPCHandler only checks for parameter beeing object or array (according to TJSONRPCHandler.Options) or should it also check for individual parameters according to ParamDefs? For the latter I didn't find any implementation, so it is missing? Regards Simon