JSON schema validator
#1
Question 
Hi, i want to know where JSON schema validator work?

when i do request 
json:
{"id":1,"jsonrpc":"2.0","method":"JSONRPC.Introspect","params":{"getdescriptions":true,"getmetadata":true,"filterbytransport":true}}

i receive 
json:
{"id":1,"jsonrpc":"2.0","result":{"description":"JSON-RPC API of XBMC","id":"http://xbmc.org/jsonrpc/ServiceDescription.json","methods":.....TO BIG}}

so i try to use the schema with some JSON schema validator without any result
https://json-schema-validator.herokuapp.com/
https://www.jsonschemavalidator.net/

i dont know how to validate request properly.

Have you any kind of information plz.

Thx you
Reply
#2
out of curiosity, why do you want to validate the request?

why not just concentrate on making requests and then using the data returned...
Reply
#3
Im working on request editor/debugger to help developer to create valid jsonrpc query. 

Im working on JS KodiClient library to abstract the query system and add some middlewares to it like request cache logging object cache(video, song etc..).

So the best case for me is to extract the informations directly from kodi schema instead of hardcoding it. (and to follow the jsonrpc api changes)
Reply

Logout Mark Read Team Forum Stats Members Help
JSON schema validator0