diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:47:02 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:47:02 +0800 |
commit | 4fe410a277f13bc637ffe1c1c5b023d957a2bef8 (patch) | |
tree | 511d43091518c5a6eb8a8b92ab21294f3bafea93 | |
parent | 3235606644fda04a7a8933151ec129e307a4c494 (diff) | |
download | dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.gz dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.bz2 dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.lz dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.xz dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.tar.zst dexon-sol-tools-4fe410a277f13bc637ffe1c1c5b023d957a2bef8.zip |
Add typescript typings for Open API spec
-rw-r--r-- | packages/sra/package.json | 1 | ||||
-rw-r--r-- | packages/sra/src/api.ts | 4 | ||||
-rw-r--r-- | yarn.lock | 15 |
3 files changed, 19 insertions, 1 deletions
diff --git a/packages/sra/package.json b/packages/sra/package.json index 47faafd92..cede40761 100644 --- a/packages/sra/package.json +++ b/packages/sra/package.json @@ -31,6 +31,7 @@ "dependencies": {}, "devDependencies": { "@0xproject/tslint-config": "^1.0.4", + "@loopback/openapi-v3-types": "^0.8.2", "@types/mocha": "^2.2.42", "chai": "^4.0.1", "copyfiles": "^1.2.0", diff --git a/packages/sra/src/api.ts b/packages/sra/src/api.ts index 98b5ce96a..9043f6245 100644 --- a/packages/sra/src/api.ts +++ b/packages/sra/src/api.ts @@ -1,4 +1,6 @@ -export const api = { +import { OpenApiSpec } from '@loopback/openapi-v3-types'; + +export const api: OpenApiSpec = { openapi: '3.0.0', info: { version: '1.0.0', @@ -842,6 +842,17 @@ dependencies: npmlog "^4.1.2" +"@loopback/dist-util@^0.3.5": + version "0.3.5" + resolved "https://registry.npmjs.org/@loopback/dist-util/-/dist-util-0.3.5.tgz#c43eec658bab07fc5e7d9b5eba270eac6ea802cf" + +"@loopback/openapi-v3-types@^0.8.2": + version "0.8.2" + resolved "https://registry.npmjs.org/@loopback/openapi-v3-types/-/openapi-v3-types-0.8.2.tgz#6dd4d6ee9a791605d872a0aa875a2166ff330182" + dependencies: + "@loopback/dist-util" "^0.3.5" + openapi3-ts "^0.11.0" + "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" @@ -9318,6 +9329,10 @@ openapi-schema-validation@^0.4.1: jsonschema-draft4 "^1.0.0" swagger-schema-official "2.0.0-bab6bed" +openapi3-ts@^0.11.0: + version "0.11.0" + resolved "https://registry.npmjs.org/openapi3-ts/-/openapi3-ts-0.11.0.tgz#8e4c51ad8d54f8f2516b895e4ce8c01550cd4854" + opn-cli@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/opn-cli/-/opn-cli-3.1.0.tgz#f819ae6cae0b411bd0149b8560fe6c88adad20f8" |