22 lines
399 B
TypeScript
22 lines
399 B
TypeScript
import { JSONSchemaType } from "ajv";
|
|
|
|
// @ts-ignore
|
|
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
|
|
type: "object",
|
|
properties: {
|
|
module: {
|
|
type: "string",
|
|
},
|
|
method: {
|
|
type: "string",
|
|
},
|
|
data: {
|
|
type: ["number", "string", "boolean", "object", "array"],
|
|
},
|
|
bypassCache: {
|
|
type: "boolean",
|
|
nullable: true,
|
|
},
|
|
},
|
|
};
|