Skip to content

Commit d8d5855

Browse files
Merge pull request #411 from blockfrost/fix/pools-extended-ext
fix: /pools/extended metadata
2 parents d8e9058 + 7634538 commit d8d5855

10 files changed

Lines changed: 22 additions & 22 deletions

blockfrost-openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.76
3+
version: 0.1.77
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg
@@ -9514,6 +9514,7 @@ components:
95149514
description: Fixed tax cost of the stake pool
95159515
metadata:
95169516
type: object
9517+
nullable: true
95179518
properties:
95189519
url:
95199520
type: string
@@ -9546,8 +9547,6 @@ components:
95469547
example: https://stakentus.com/
95479548
description: Home page of the stake pool
95489549
required:
9549-
- pool_id
9550-
- hex
95519550
- url
95529551
- hash
95539552
- ticker
@@ -9564,6 +9563,7 @@ components:
95649563
- declared_pledge
95659564
- margin_cost
95669565
- fixed_cost
9566+
- metadata
95679567
example:
95689568
- pool_id: pool19u64770wqp6s95gkajc8udheske5e6ljmpq33awxk326zjaza0q
95699569
hex: 2f355f79ee007502d116ecb07e36f985b34cebf2d84118f5c6b455a1

docs/blockfrost-openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.76
3+
version: 0.1.77
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -10041,6 +10041,7 @@ components:
1004110041
description: Fixed tax cost of the stake pool
1004210042
metadata:
1004310043
type: object
10044+
nullable: true
1004410045
properties:
1004510046
url:
1004610047
type: string
@@ -10074,8 +10075,6 @@ components:
1007410075
example: 'https://stakentus.com/'
1007510076
description: Home page of the stake pool
1007610077
required:
10077-
- pool_id
10078-
- hex
1007910078
- url
1008010079
- hash
1008110080
- ticker
@@ -10092,6 +10091,7 @@ components:
1009210091
- declared_pledge
1009310092
- margin_cost
1009410093
- fixed_cost
10094+
- metadata
1009510095
example:
1009610096
- pool_id: pool19u64770wqp6s95gkajc8udheske5e6ljmpq33awxk326zjaza0q
1009710097
hex: 2f355f79ee007502d116ecb07e36f985b34cebf2d84118f5c6b455a1

json-schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"openapi": "3.0.3",
33
"info": {
4-
"version": "0.1.76",
4+
"version": "0.1.77",
55
"title": "Blockfrost.io ~ API Documentation",
66
"x-logo": {
77
"url": "https://staging.blockfrost.io/images/logo.svg",
@@ -12941,6 +12941,7 @@
1294112941
},
1294212942
"metadata": {
1294312943
"type": "object",
12944+
"nullable": true,
1294412945
"properties": {
1294512946
"url": {
1294612947
"type": "string",
@@ -12980,8 +12981,6 @@
1298012981
}
1298112982
},
1298212983
"required": [
12983-
"pool_id",
12984-
"hex",
1298512984
"url",
1298612985
"hash",
1298712986
"ticker",
@@ -13000,7 +12999,8 @@
1300012999
"live_saturation",
1300113000
"declared_pledge",
1300213001
"margin_cost",
13003-
"fixed_cost"
13002+
"fixed_cost",
13003+
"metadata"
1300413004
]
1300513005
},
1300613006
"example": [

openapi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.76
3+
version: 0.1.77
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -10041,6 +10041,7 @@ components:
1004110041
description: Fixed tax cost of the stake pool
1004210042
metadata:
1004310043
type: object
10044+
nullable: true
1004410045
properties:
1004510046
url:
1004610047
type: string
@@ -10074,8 +10075,6 @@ components:
1007410075
example: 'https://stakentus.com/'
1007510076
description: Home page of the stake pool
1007610077
required:
10077-
- pool_id
10078-
- hex
1007910078
- url
1008010079
- hash
1008110080
- ticker
@@ -10092,6 +10091,7 @@ components:
1009210091
- declared_pledge
1009310092
- margin_cost
1009410093
- fixed_cost
10094+
- metadata
1009510095
example:
1009610096
- pool_id: pool19u64770wqp6s95gkajc8udheske5e6ljmpq33awxk326zjaza0q
1009710097
hex: 2f355f79ee007502d116ecb07e36f985b34cebf2d84118f5c6b455a1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blockfrost/openapi",
3-
"version": "0.1.76",
3+
"version": "0.1.77",
44
"description": "OpenAPI specifications for blockfrost.io",
55
"repository": "git@github.com:blockfrost/openapi.git",
66
"author": "admin@blockfrost.io",

src/definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.76
3+
version: 0.1.77
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg

src/generated-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9547,7 +9547,7 @@ export interface components {
95479547
* @example 340000000
95489548
*/
95499549
fixed_cost: string;
9550-
metadata?: {
9550+
metadata: {
95519551
/**
95529552
* @description URL to the stake pool metadata
95539553
* @example https://stakenuts.com/mainnet.json
@@ -9578,7 +9578,7 @@ export interface components {
95789578
* @example https://stakentus.com/
95799579
*/
95809580
homepage: string | null;
9581-
};
9581+
} | null;
95829582
}[];
95839583
/** @example [
95849584
* {

src/schemas/pools/pool_list_extended.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ items:
3939
description: Fixed tax cost of the stake pool
4040
metadata:
4141
type: object
42+
nullable: true
4243
properties:
4344
url:
4445
type: string
@@ -71,8 +72,6 @@ items:
7172
example: "https://stakentus.com/"
7273
description: Home page of the stake pool
7374
required:
74-
- pool_id
75-
- hex
7675
- url
7776
- hash
7877
- ticker
@@ -89,6 +88,7 @@ items:
8988
- declared_pledge
9089
- margin_cost
9190
- fixed_cost
91+
- metadata
9292
example:
9393
- pool_id: "pool19u64770wqp6s95gkajc8udheske5e6ljmpq33awxk326zjaza0q"
9494
hex: "2f355f79ee007502d116ecb07e36f985b34cebf2d84118f5c6b455a1"

test/tests/__snapshots__/get-schema-for-endpoint.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18752,6 +18752,7 @@ relative to the start of the network
1875218752
"type": "number",
1875318753
},
1875418754
"metadata": {
18755+
"nullable": true,
1875518756
"properties": {
1875618757
"description": {
1875718758
"description": "Description of the stake pool",
@@ -18791,8 +18792,6 @@ relative to the start of the network
1879118792
},
1879218793
},
1879318794
"required": [
18794-
"pool_id",
18795-
"hex",
1879618795
"url",
1879718796
"hash",
1879818797
"ticker",
@@ -18818,6 +18817,7 @@ relative to the start of the network
1881818817
"declared_pledge",
1881918818
"margin_cost",
1882018819
"fixed_cost",
18820+
"metadata",
1882118821
],
1882218822
"type": "object",
1882318823
},

0 commit comments

Comments
 (0)