Skip to content

Commit e559b86

Browse files
authored
Merge pull request #1215 from oasisprotocol/lw/openapi-long
openapi: Split long summaries into descriptions
2 parents 4dedcc0 + a15ad2a commit e559b86

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changelog/1215.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
openapi: Split long summaries into descriptions

api/spec/v1.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ paths:
176176

177177
/recent_blocks:
178178
get:
179-
summary: Returns a list of recent blocks across all layers, sorted from most to least recent. Limited to 10 blocks.
179+
summary: Returns a list of recent blocks across all layers
180+
description: Sorted from most to least recent. Limited to 10 blocks.
180181
responses:
181182
'200':
182183
description: A JSON object containing a list of recent blocks.
@@ -548,7 +549,8 @@ paths:
548549

549550
/consensus/validators:
550551
get:
551-
summary: Returns a list of validators registered at the consensus layer (the list includes all registered entities, even those without a currently active validator node).
552+
summary: Returns a list of validators registered at the consensus layer
553+
description: The list includes all registered entities, even those without a currently active validator node.
552554
parameters:
553555
- *limit
554556
- *offset
@@ -633,6 +635,7 @@ paths:
633635
get:
634636
summary: |
635637
Returns a list of consensus layer accounts.
638+
description: |
636639
Note that for performance reasons, the info returned by this endpoint
637640
may be slightly stale (<2 minutes). For the most up-to-date account state,
638641
query the single-account endpoint.
@@ -1147,6 +1150,7 @@ paths:
11471150
get:
11481151
summary: |
11491152
Returns the list of holders of an EVM (ERC-20, ...) token.
1153+
description: |
11501154
This endpoint does not verify that `address` is actually an EVM token; if it is not, it will simply return an empty list.
11511155
parameters:
11521156
- *limit
@@ -1171,6 +1175,7 @@ paths:
11711175
get:
11721176
summary: |
11731177
Returns the list of non-fungible token (NFT) instances of an EVM (ERC-721, ...) token.
1178+
description: |
11741179
This endpoint does not verify that `address` is actually an EVM token; if it is not, it will simply return an empty list.
11751180
parameters:
11761181
- *limit
@@ -1388,6 +1393,7 @@ paths:
13881393
get:
13891394
summary: |
13901395
Returns a list of "managing" transactions of the ROFL app.
1396+
description: |
13911397
This does not return transaction submitted by ROFL app instances, for that see
13921398
the `/rofl_apps/{id}/instance_transactions` endpoint.
13931399
parameters:
@@ -1730,12 +1736,14 @@ components:
17301736
# NOTE: Change IsValid() in util.go if you change this.
17311737
# https://github.com/oasisprotocol/nexus/blob/v0.0.16/api/v1/types/util.go#L40
17321738
enum: [emerald, sapphire, pontusxtest, pontusxdev, cipher, consensus]
1739+
example: sapphire
17331740

17341741
Runtime:
17351742
type: string
17361743
# NOTE: Change IsValid() in util.go if you change this.
17371744
# https://github.com/oasisprotocol/nexus/blob/v0.0.16/api/v1/types/util.go#L49
17381745
enum: [emerald, sapphire, pontusxtest, pontusxdev, cipher]
1746+
example: sapphire
17391747

17401748
StakingAddress:
17411749
type: string

0 commit comments

Comments
 (0)