Skip to content

Commit 6c13a55

Browse files
agraebezone117x
authored andcommitted
fix: adding schema for fee estimates
without this, the response is simply undefined
1 parent 2c52d85 commit 6c13a55

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"description": "GET fee estimates",
4+
"title": "CoreNodeFeeResponse",
5+
"type": "string",
6+
"additionalProperties": false
7+
}

docs/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ export interface ContractSourceResponse {
172172
proof: string;
173173
}
174174

175+
/**
176+
* GET fee estimates
177+
*/
178+
export type CoreNodeFeeResponse = string;
179+
175180
/**
176181
* GET request that core node information
177182
*/

docs/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@ paths:
676676
description: Success
677677
content:
678678
application/json:
679+
schema:
680+
$ref: ./api/core-node/get-fee-transfer.schema.json
679681
example:
680682
$ref: ./api/core-node/get-fee-transfer.example.json
681683

0 commit comments

Comments
 (0)