Skip to content

Commit

Permalink
fix: adding schema for fee estimates
Browse files Browse the repository at this point in the history
without this, the response is simply undefined
  • Loading branch information
agraebe authored and zone117x committed Oct 15, 2020
1 parent 2c52d85 commit 6c13a55
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/api/core-node/get-fee-transfer.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "GET fee estimates",
"title": "CoreNodeFeeResponse",
"type": "string",
"additionalProperties": false
}
5 changes: 5 additions & 0 deletions docs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ export interface ContractSourceResponse {
proof: string;
}

/**
* GET fee estimates
*/
export type CoreNodeFeeResponse = string;

/**
* GET request that core node information
*/
Expand Down
2 changes: 2 additions & 0 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,8 @@ paths:
description: Success
content:
application/json:
schema:
$ref: ./api/core-node/get-fee-transfer.schema.json
example:
$ref: ./api/core-node/get-fee-transfer.example.json

Expand Down

0 comments on commit 6c13a55

Please sign in to comment.