2022-08-27 01:52:19 +00:00
|
|
|
import { JSONSchemaType } from "ajv";
|
2022-08-27 02:12:13 +00:00
|
|
|
|
2022-08-27 18:52:02 +00:00
|
|
|
// @ts-ignore
|
2022-08-27 01:52:19 +00:00
|
|
|
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
module: {
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
method: {
|
|
|
|
type: "string",
|
|
|
|
},
|
|
|
|
data: {
|
2022-08-28 06:48:53 +00:00
|
|
|
type: ["number", "string", "boolean", "object", "array"],
|
2022-08-27 01:52:19 +00:00
|
|
|
},
|
|
|
|
bypassCache: {
|
|
|
|
type: "boolean",
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|