We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bc5c32 commit 803b1ddCopy full SHA for 803b1dd
src/model/api/jsonrpc.ts
@@ -208,7 +208,22 @@ export class JsonRpcApiResponse implements ApiResponse {
208
const resultSpec = rpcMethod.methodSpec.result as ContentDescriptorObject;
209
210
this.description = fromMarkdown(resultSpec.description);
211
- this.bodySchema = resultSpec.schema as SchemaObject;
+ this.bodySchema = {
212
+ type: 'object',
213
+ properties: {
214
+ id: { type: 'number' },
215
+ jsonrpc: { type: 'string', enum: ['2.0'] },
216
+ result: resultSpec.schema as SchemaObject,
217
+ error: {
218
219
220
+ code: { type: 'number' },
221
+ message: { type: 'string' }
222
+ }
223
224
+ },
225
+ required: ['id', 'jsonrpc']
226
+ };
227
}
228
229
description?: Html;
0 commit comments