Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ dist
rust/src/docs
rust/target
rust/docs
rust/.openapi-generator
8 changes: 4 additions & 4 deletions blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: 0.1.82
version: 0.1.83
title: Blockfrost.io ~ API Documentation
x-logo:
url: https://staging.blockfrost.io/images/logo.svg
Expand Down Expand Up @@ -11094,7 +11094,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11113,7 +11113,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11133,7 +11133,7 @@ components:
type: integer
description: Epoch length in number of slots
slot_length:
type: number
type: integer
description: Slot length in seconds
safe_zone:
type: integer
Expand Down
8 changes: 4 additions & 4 deletions docs/blockfrost-openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.82
version: 0.1.83
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -11668,7 +11668,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11687,7 +11687,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11707,7 +11707,7 @@ components:
type: integer
description: Epoch length in number of slots
slot_length:
type: number
type: integer
description: Slot length in seconds
safe_zone:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion json-schema.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions openapi.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.3",
"info": {
"version": "0.1.82",
"version": "0.1.83",
"title": "Blockfrost.io ~ API Documentation",
"x-logo": {
"url": "https://staging.blockfrost.io/images/logo.svg",
Expand Down Expand Up @@ -15136,7 +15136,7 @@
"description": "Start of the blockchain era,\nrelative to the start of the network\n",
"properties": {
"time": {
"type": "number",
"type": "integer",
"description": "Time in seconds relative to the start time of the network"
},
"slot": {
Expand All @@ -15159,7 +15159,7 @@
"description": "End of the blockchain era,\nrelative to the start of the network\n",
"properties": {
"time": {
"type": "number",
"type": "integer",
"description": "Time in seconds relative to the start time of the network"
},
"slot": {
Expand All @@ -15186,7 +15186,7 @@
"description": "Epoch length in number of slots"
},
"slot_length": {
"type": "number",
"type": "integer",
"description": "Slot length in seconds"
},
"safe_zone": {
Expand Down
8 changes: 4 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
version: 0.1.82
version: 0.1.83
title: Blockfrost.io ~ API Documentation
x-logo:
url: 'https://staging.blockfrost.io/images/logo.svg'
Expand Down Expand Up @@ -11668,7 +11668,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11687,7 +11687,7 @@ components:
relative to the start of the network
properties:
time:
type: number
type: integer
description: Time in seconds relative to the start time of the network
slot:
type: integer
Expand All @@ -11707,7 +11707,7 @@ components:
type: integer
description: Epoch length in number of slots
slot_length:
type: number
type: integer
description: Slot length in seconds
safe_zone:
type: integer
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blockfrost/openapi",
"version": "0.1.82",
"version": "0.1.83",
"description": "OpenAPI specifications for blockfrost.io",
"repository": "git@github.com:blockfrost/openapi.git",
"author": "admin@blockfrost.io",
Expand All @@ -17,14 +17,14 @@
"lint": "scalar validate ./src/definitions.yaml",
"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",
"generate-types": "yarn openapi-typescript ./openapi.yaml --output ./src/generated-types.ts",
"generate-types:rust": "openapi-generator-cli generate -i openapi.yaml -g rust -o ./rust --global-property models",
"generate-types:rust": "openapi-generator-cli generate -i openapi.yaml -g rust -o ./rust --global-property models,modelDocs=false,apis=false,apiDocs=false,supportingFiles",
"generate-json-schema": "node lib/scripts/generate-json-schema.js > json-schema.json",
"sync-version": "ts-node ./src/scripts/sync-version.ts",
"test": "vitest",
"coverage": "vitest run --coverage"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.18.4",
"@openapitools/openapi-generator-cli": "2.25.2",
"@redocly/cli": "1.26.0",
"@scalar/cli": "^0.2.265",
"@types/node": "^22.10.2",
Expand Down
3 changes: 3 additions & 0 deletions rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target/
**/*.rs.bk
Cargo.lock
23 changes: 23 additions & 0 deletions rust/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
1 change: 1 addition & 0 deletions rust/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: rust
Loading