@blockfrost/openapi
Advanced tools
Comparing version 0.1.44-beta.6 to 0.1.44-beta.7
@@ -10,3 +10,3 @@ "use strict"; | ||
const yaml_1 = __importDefault(require("yaml")); | ||
const file = fs_1.default.readFileSync(path_1.default.resolve(__dirname, 'openapi.yaml'), 'utf8'); | ||
const file = fs_1.default.readFileSync(path_1.default.resolve('openapi.yaml'), 'utf8'); | ||
const spec = yaml_1.default.parse(file); | ||
@@ -13,0 +13,0 @@ const getSchemaForEndpoint = (endpointName) => { |
{ | ||
"name": "@blockfrost/openapi", | ||
"version": "0.1.44-beta.6", | ||
"version": "0.1.44-beta.7", | ||
"description": "OpenAPI specifications for blockfrost.io", | ||
@@ -16,4 +16,5 @@ "repository": "git@github.com:blockfrost/openapi.git", | ||
"generate-docs": "redoc-cli bundle -t ./src/template.hbs -o docs/index.html ./openapi.yaml", | ||
"generate-types": "openapi-typescript ./openapi.yaml --output ./src/openapi.ts", | ||
"build": "rimraf lib && yarn bundle && yarn generate-types && yarn generate-docs && yarn tsc && cp ./openapi.yaml lib/openapi.yaml" | ||
"generate-types": "openapi-typescript ./openapi.yaml --output ./src/generated-types.ts", | ||
"build": "rimraf lib && yarn bundle && yarn generate-types && yarn generate-docs && yarn tsc && cp ./openapi.yaml lib/openapi.yaml", | ||
"test": "vitest" | ||
}, | ||
@@ -27,3 +28,4 @@ "devDependencies": { | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.8.4" | ||
"typescript": "^4.8.4", | ||
"vitest": "^0.24.3" | ||
}, | ||
@@ -30,0 +32,0 @@ "dependencies": { |
@@ -24,3 +24,3 @@ <a href="https://fivebinaries.com/"><img src="https://img.shields.io/badge/made%20by-Five%20Binaries-darkviolet.svg?style=flat-square" /></a> | ||
Final [`openapi.yaml`](src/openapi.yaml) specification is generated from all yaml files in `src` directory. | ||
Final [`openapi.yaml`](openapi.yaml) specification is generated from all yaml files in `src` directory. | ||
If you add a new file then don't forget to add it to `paths` in [`src/definitions.yaml`](src/definitions.yaml). | ||
@@ -27,0 +27,0 @@ |
504659
8
8
6132