generate schema

This commit is contained in:
Flam3rboy 2021-08-23 03:52:14 +02:00
parent 7fa8bd9e10
commit af1b5f30c6
2 changed files with 19509 additions and 9 deletions

View File

@ -5,8 +5,10 @@
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"scripts": { "scripts": {
"test": "jest",
"postinstall": "npm run build", "postinstall": "npm run build",
"build": "npx tsc -b ." "build": "npx tsc -b .",
"generate:schema": "npx typescript-json-schema tsconfig.json '*' -o src/models/schema.json"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -28,28 +30,25 @@
"devDependencies": { "devDependencies": {
"@types/amqplib": "^0.8.1", "@types/amqplib": "^0.8.1",
"@types/jsonwebtoken": "^8.5.0", "@types/jsonwebtoken": "^8.5.0",
"@types/mongodb": "^3.6.9",
"@types/mongoose-autopopulate": "^0.10.1", "@types/mongoose-autopopulate": "^0.10.1",
"@types/mongoose-lean-virtuals": "^0.5.1",
"@types/node": "^14.17.9", "@types/node": "^14.17.9",
"@types/node-fetch": "^2.5.12" "@types/node-fetch": "^2.5.12",
"jest": "^27.0.6"
}, },
"dependencies": { "dependencies": {
"ajv": "^8.5.0", "ajv": "^8.6.2",
"amqplib": "^0.8.0", "amqplib": "^0.8.0",
"class-validator": "^0.13.1", "class-validator": "^0.13.1",
"dot-prop": "^6.0.1", "dot-prop": "^6.0.1",
"env-paths": "^2.2.1", "env-paths": "^2.2.1",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"missing-native-js-functions": "^1.2.10", "missing-native-js-functions": "^1.2.10",
"mongodb": "^3.6.9",
"mongoose": "^5.13.7",
"mongoose-autopopulate": "^0.12.3",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"reflect-metadata": "^0.1.13", "reflect-metadata": "^0.1.13",
"sqlite3": "^5.0.2", "sqlite3": "^5.0.2",
"ts-transform-json-schema": "^2.0.3", "ts-transform-json-schema": "^2.0.3",
"typeorm": "^0.2.37", "typeorm": "^0.2.37",
"typescript": "^4.3.5" "typescript": "^4.3.5",
"typescript-json-schema": "github:fosscord/typescript-json-schema"
} }
} }

19501
util/schema.json Normal file

File diff suppressed because it is too large Load Diff