Not generate schema automatically
See original GitHub issueI’m submitting a…
[ ] Regression
[+] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I just upgrade @nestjs/swagger
to 4.2.3
which is have feature can generate swagger schema on dto without define @ApiProperty
explicitly. i have use nest cli to build my project.
Expected behavior
Expected generate schema automatically
Environment
[System Information]
OS Version : Linux 5.3
NodeJS Version : v10.15.2
YARN Version : 1.21.1
[Nest CLI]
Nest CLI Version : 6.14.1
[Nest Platform Information]
platform-socket.io version : 6.11.4
platform-express version : 6.10.14
platform-fastify version : 6.11.4
elasticsearch version : 7.0.0
websockets version : 6.11.4
passport version : 6.1.1
swagger version : 4.2.3
typeorm version : 6.2.0
common version : 6.11.4
core version : 6.11.4
jwt version : 6.1.1
[package.json]
{
"name": "turtle",
"version": "0.0.1",
"description": "",
"author": "",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"build": "nest build",
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js --config src/config/database.ts",
"format": "prettier --write \"src/**/*.ts\"",
"dist": "node -r ./bootstrap/bootstrap.js dist/main.js",
"start": "ts-node -r tsconfig-paths/register src/main.ts",
"start:dev": "tsc-watch -p tsconfig.build.json --onSuccess \"yarn run dist\"",
"start:prod": "NODE_ENV=production yarn run dist",
"debug": "node --inspect -r ts-node/register -r tsconfig-paths/register src/main.ts",
"migration:generate": "yarn run typeorm migration:generate -n",
"migation:create": "yarn run typeorm migration:create -n",
"migration:run": "yarn run typeorm migration:run",
"lint": "tslint -p tsconfig.json -c tslint.json",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:e2e": "jest --config ./test/jest-e2e.json"
},
"dependencies": {
"@elastic/elasticsearch": "^7.5.0",
"@google-cloud/pubsub": "^1.4.1",
"@google-cloud/storage": "^4.3.0",
"@google-cloud/tasks": "^1.7.1",
"@nest-modules/mailer": "^1.1.3",
"@nestjs/common": "^6.11.4",
"@nestjs/core": "^6.11.4",
"@nestjs/elasticsearch": "^7.0.0",
"@nestjs/jwt": "^6.1.1",
"@nestjs/passport": "^6.1.1",
"@nestjs/platform-express": "^6.10.14",
"@nestjs/platform-fastify": "^6.11.4",
"@nestjs/platform-socket.io": "^6.11.4",
"@nestjs/swagger": "^4.2.3",
"@nestjs/typeorm": "^6.2.0",
"@nestjs/websockets": "^6.11.4",
"@typegoose/typegoose": "^6.2.1",
"@types/jsonwebtoken": "^8.3.7",
"@types/lodash": "^4.14.149",
"array-to-tree": "^3.3.2",
"aws-sdk": "^2.610.0",
"bcrypt": "^3.0.7",
"class-transformer": "^0.2.3",
"class-transformer-validator": "^0.8.0",
"class-validator": "^0.11.0",
"expo-server-sdk": "^3.4.0",
"fastify-cors": "^3.0.1",
"fastify-etag": "^0.1.0",
"fastify-file-upload": "^2.0.1",
"fastify-helmet": "^3.0.2",
"fastify-no-icon": "^3.0.0",
"fastify-swagger": "^2.5.0",
"ioredis": "^4.14.1",
"lodash": "^4.17.15",
"moment": "^2.24.0",
"mongoose": "^5.7.13",
"ms": "^2.1.2",
"nest-event": "^1.0.8",
"nestjs-config": "^1.4.5",
"nestjs-flub": "^0.2.0",
"nestjs-typegoose": "^7.0.0",
"passport": "^0.4.1",
"passport-jwt": "^4.0.0",
"pg": "^7.17.1",
"redis": "^2.8.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.1",
"rxjs": "^6.5.4",
"sharp": "^0.24.0",
"twilio": "^3.39.3",
"typeorm": "^0.2.22"
},
"devDependencies": {
"@nestjs/cli": "^6.14.1",
"@nestjs/schematics": "^6.9.1",
"@nestjs/testing": "^6.11.4",
"@types/bcrypt": "^3.0.0",
"@types/dotenv": "^8.2.0",
"@types/jest": "^25.1.0",
"@types/mongoose": "^5.5.41",
"@types/node": "^13.5.1",
"@types/socket.io": "^2.1.4",
"@types/supertest": "^2.0.8",
"jest": "^25.1.0",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"supertest": "^4.0.2",
"ts-essentials": "^5.0.0",
"ts-jest": "25.0.0",
"ts-node": "8.6.2",
"tsc-watch": "^4.1.0",
"tsconfig-paths": "3.9.0",
"tslint": "6.0.0",
"typescript": "3.7.5"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Schema is not created automatically if not exist Hibernate4 ...
Schema is not created automatically if not exist how to solve,if database name exist means tables are create automatically but schema is not...
Read more >Automatic Schema Generation
Automatic schema generation is supported on an all-or-none basis: it expects that no tables exist in the database before it is executed. It...
Read more >Generate Database Schema with Spring Data JPA - Baeldung
Generate Database Schema with Spring Data JPA ... Data JPA to automatically generate our database schema with the standard JPA properties.
Read more >Schemas | Caliban
A GraphQL schema will be derived automatically at compile-time (no reflection) from ... This will also improve compilation times and generate less bytecode....
Read more >Schemas - Django REST framework
pyyaml is used to generate schema into YAML-based OpenAPI format. ... additional information that cannot be automatically inferred by the schema generator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kamilmysliwiec Yeah, I can’t seem to reproduce it anymore. I just init a new Nest application and it works as expected.
@samdidos you don’t have yo use
nest start
.nest build
is required though