All Downloads are FREE. Search and download functionalities are using the official Maven repository.

e.json-schema-validator.1.99.4.source-code.jsonrpc-request-2.0.json Maven / Gradle / Ivy

{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "A JSON RPC 2.0 request",
    "type": "object",
    "required": [ "jsonrpc" ],
    "properties": {
        "jsonrpc": { "enum": [ "2.0" ] },
        "method": {
            "note": "the fact that it must be a string is deduced here, not a guarantee",
            "type": "string"
        },
        "id": {
            "type": [ "string", "integer", "null" ],
            "note": [
                "spec says a number which should not contain a fractional part...",
                "We choose integer here, but this is unenforceable with some languages"
            ]
        },
        "params": {
            "note": [
                "spec says \"a structured value\", without any further precision...",
                "Therefore, by default, any array or object is allowed without any restriction"
            ] ,
            "type": [ "array", "object" ]
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy