Skip to content

Commit 0837ef7

Browse files
Merge pull request #432 from blockfrost/eras-integers
Fix network eras response
2 parents 694313c + 15309eb commit 0837ef7

File tree

194 files changed

+3188
-1523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+3188
-1523
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,4 @@ dist
138138
rust/src/docs
139139
rust/target
140140
rust/docs
141+
rust/.openapi-generator

blockfrost-openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 0.1.82
3+
version: 0.1.83
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: https://staging.blockfrost.io/images/logo.svg
@@ -11094,7 +11094,7 @@ components:
1109411094
relative to the start of the network
1109511095
properties:
1109611096
time:
11097-
type: number
11097+
type: integer
1109811098
description: Time in seconds relative to the start time of the network
1109911099
slot:
1110011100
type: integer
@@ -11113,7 +11113,7 @@ components:
1111311113
relative to the start of the network
1111411114
properties:
1111511115
time:
11116-
type: number
11116+
type: integer
1111711117
description: Time in seconds relative to the start time of the network
1111811118
slot:
1111911119
type: integer
@@ -11133,7 +11133,7 @@ components:
1113311133
type: integer
1113411134
description: Epoch length in number of slots
1113511135
slot_length:
11136-
type: number
11136+
type: integer
1113711137
description: Slot length in seconds
1113811138
safe_zone:
1113911139
type: integer

docs/blockfrost-openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.82
3+
version: 0.1.83
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -11668,7 +11668,7 @@ components:
1166811668
relative to the start of the network
1166911669
properties:
1167011670
time:
11671-
type: number
11671+
type: integer
1167211672
description: Time in seconds relative to the start time of the network
1167311673
slot:
1167411674
type: integer
@@ -11687,7 +11687,7 @@ components:
1168711687
relative to the start of the network
1168811688
properties:
1168911689
time:
11690-
type: number
11690+
type: integer
1169111691
description: Time in seconds relative to the start time of the network
1169211692
slot:
1169311693
type: integer
@@ -11707,7 +11707,7 @@ components:
1170711707
type: integer
1170811708
description: Epoch length in number of slots
1170911709
slot_length:
11710-
type: number
11710+
type: integer
1171111711
description: Slot length in seconds
1171211712
safe_zone:
1171311713
type: integer

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.82",
4+
"version": "0.1.83",
55
"title": "Blockfrost.io ~ API Documentation",
66
"x-logo": {
77
"url": "https://staging.blockfrost.io/images/logo.svg",
@@ -15136,7 +15136,7 @@
1513615136
"description": "Start of the blockchain era,\nrelative to the start of the network\n",
1513715137
"properties": {
1513815138
"time": {
15139-
"type": "number",
15139+
"type": "integer",
1514015140
"description": "Time in seconds relative to the start time of the network"
1514115141
},
1514215142
"slot": {
@@ -15159,7 +15159,7 @@
1515915159
"description": "End of the blockchain era,\nrelative to the start of the network\n",
1516015160
"properties": {
1516115161
"time": {
15162-
"type": "number",
15162+
"type": "integer",
1516315163
"description": "Time in seconds relative to the start time of the network"
1516415164
},
1516515165
"slot": {
@@ -15186,7 +15186,7 @@
1518615186
"description": "Epoch length in number of slots"
1518715187
},
1518815188
"slot_length": {
15189-
"type": "number",
15189+
"type": "integer",
1519015190
"description": "Slot length in seconds"
1519115191
},
1519215192
"safe_zone": {

openapi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.3
22
info:
3-
version: 0.1.82
3+
version: 0.1.83
44
title: Blockfrost.io ~ API Documentation
55
x-logo:
66
url: 'https://staging.blockfrost.io/images/logo.svg'
@@ -11668,7 +11668,7 @@ components:
1166811668
relative to the start of the network
1166911669
properties:
1167011670
time:
11671-
type: number
11671+
type: integer
1167211672
description: Time in seconds relative to the start time of the network
1167311673
slot:
1167411674
type: integer
@@ -11687,7 +11687,7 @@ components:
1168711687
relative to the start of the network
1168811688
properties:
1168911689
time:
11690-
type: number
11690+
type: integer
1169111691
description: Time in seconds relative to the start time of the network
1169211692
slot:
1169311693
type: integer
@@ -11707,7 +11707,7 @@ components:
1170711707
type: integer
1170811708
description: Epoch length in number of slots
1170911709
slot_length:
11710-
type: number
11710+
type: integer
1171111711
description: Slot length in seconds
1171211712
safe_zone:
1171311713
type: integer

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blockfrost/openapi",
3-
"version": "0.1.82",
3+
"version": "0.1.83",
44
"description": "OpenAPI specifications for blockfrost.io",
55
"repository": "[email protected]:blockfrost/openapi.git",
66
"author": "[email protected]",
@@ -17,14 +17,14 @@
1717
"lint": "scalar validate ./src/definitions.yaml",
1818
"bundle": "yarn redocly bundle -o ./blockfrost-openapi.yaml src/definitions.yaml && yarn openapi-merge-cli && yarn redocly bundle -o ./openapi.json ./openapi.yaml && yarn copy-spec",
1919
"generate-types": "yarn openapi-typescript ./openapi.yaml --output ./src/generated-types.ts",
20-
"generate-types:rust": "openapi-generator-cli generate -i openapi.yaml -g rust -o ./rust --global-property models",
20+
"generate-types:rust": "openapi-generator-cli generate -i openapi.yaml -g rust -o ./rust --global-property models,modelDocs=false,apis=false,apiDocs=false,supportingFiles",
2121
"generate-json-schema": "node lib/scripts/generate-json-schema.js > json-schema.json",
2222
"sync-version": "ts-node ./src/scripts/sync-version.ts",
2323
"test": "vitest",
2424
"coverage": "vitest run --coverage"
2525
},
2626
"devDependencies": {
27-
"@openapitools/openapi-generator-cli": "^2.18.4",
27+
"@openapitools/openapi-generator-cli": "2.25.2",
2828
"@redocly/cli": "1.26.0",
2929
"@scalar/cli": "^0.2.265",
3030
"@types/node": "^22.10.2",

rust/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
**/*.rs.bk
3+
Cargo.lock

rust/.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

rust/.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
language: rust

0 commit comments

Comments
 (0)