very-express 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,14 @@ class JoinWhitelistMiddleware {
33
33
  private validateJoinPath(joinPath: string, rootDocumentName: string): void {
34
34
  const segments = joinPath.split(".");
35
35
  let currentDoc = rootDocumentName;
36
+ const visited = new Set<string>();
36
37
 
37
38
  for (const segment of segments) {
39
+ if (visited.has(currentDoc)) {
40
+ throw new VexResErr(403, undefined, `Circular join detected: "${joinPath}" revisits "${currentDoc}"`);
41
+ }
42
+ visited.add(currentDoc);
43
+
38
44
  const relations = joinWhitelistRegistry[currentDoc];
39
45
  if (!relations || !(segment in relations)) {
40
46
  throw new VexResErr(403, undefined, `Join "${segment}" is not allowed on "${currentDoc}"`);
@@ -0,0 +1,86 @@
1
+ # 保留 tsoa + WoType 修复方案
2
+
3
+ Date: 2026-06-10
4
+ Status: Pre-implementation plan
5
+
6
+ ## 问题
7
+
8
+ tsoa 不解析 `Omit<ProfileWithApiRelations, 'client'>[]`,OAS 输出退化为 `Object[]`,relation 字段在 OAS 中丢失 schema 结构。
9
+
10
+ ## 修复:WoType(extends + 反指字段置 null)
11
+
12
+ 用生成器产出一个 `Wo{BackRef}` 后缀的 interface,`extends` 原 type,覆盖反指字段为 `null`:
13
+
14
+ ```ts
15
+ // _types/Client.gen.ts(新增)
16
+
17
+ interface ProfileWithApiRelationsWoClient extends ProfileWithApiRelations {
18
+ client?: null;
19
+ }
20
+
21
+ interface ClientApiRelations {
22
+ profile?: ProfileWithApiRelationsWoClient[];
23
+ }
24
+
25
+ export type ClientWithApiRelations = Client & ClientApiRelations;
26
+ ```
27
+
28
+ ```ts
29
+ // _types/Profile.gen.ts(新增)
30
+
31
+ interface ClientWithApiRelationsWoProfile extends ClientWithApiRelations {
32
+ profile?: null;
33
+ }
34
+
35
+ interface ProfileApiRelations {
36
+ client?: ClientWithApiRelationsWoProfile;
37
+ }
38
+
39
+ export type ProfileWithApiRelations = Profile & ProfileApiRelations;
40
+ ```
41
+
42
+ ### 为什么可行
43
+
44
+ - tsoa 能解析 `extends`——原生语法
45
+ - `client?: null` 在 OAS 中为 `type: null`,**不产生 `$ref` 回路**
46
+ - extends 继承正常字段的 OAS schema,relation 结构完整
47
+ - TypeScript 层面 `profile.client` 类型为 `null`,访问有 lint 警告,需要 `as` 绕过
48
+
49
+ ## 改动
50
+
51
+ ### 1. `src/generators/interface/generator.ts`
52
+
53
+ `applyFkToInterface()` 中:
54
+
55
+ ```diff
56
+ - const typeString = `Omit<${interfaceName}, '${utils.common.camelCase(currentDocumnetName)}'>`;
57
+ + const backRefName = utils.common.camelCase(currentDocumnetName);
58
+ + const woTypeName = `${interfaceName}Wo${utils.common.pascalCase(backRefName)}`;
59
+ + const typeString = `${woTypeName}${isArray}`;
60
+ ```
61
+
62
+ 收集所有 woTypes,在 ApiRelations 块之前输出:
63
+
64
+ ```ts
65
+ interface ${woTypeName} extends ${interfaceName} {
66
+ ${backRefName}?: null;
67
+ }
68
+ ```
69
+
70
+ 预计算 import — `interfaceName` (e.g. `ProfileWithApiRelations`) 需要 import,woType 本身在本文件内不额外 import。
71
+
72
+ ### 2. `_middlewares/JoinWhitelistMiddleware.ts`
73
+
74
+ 加 visited set 防止 join 路径循环:
75
+
76
+ ```ts
77
+ const visited = new Set([rootDocumentName]);
78
+ // 每段 join 后检查 currentDoc 是否 visited
79
+ ```
80
+
81
+ ## 总改动
82
+
83
+ | 文件 | 改动 | 行数 |
84
+ |------|------|------|
85
+ | `src/generators/interface/generator.ts` | `applyFkToInterface()` Omit → WoType `extends + null` | ~30 |
86
+ | `_middlewares/JoinWhitelistMiddleware.ts` | visited set 循环检测 | ~5 |
@@ -0,0 +1,432 @@
1
+ # tsoa → Ts.ED Migration Design
2
+
3
+ Date: 2026-06-10
4
+ Status: Draft
5
+ Branch: `migrate_to_tsed`
6
+
7
+ ## 1. Motivation
8
+
9
+ 当前 VeryExpress 用 tsoa 做路由注册 + OpenAPI 生成。tsoa 是编译期方案,读 TypeScript AST 从 `interface` 提取类型信息。缺点是 tsoa 维护长期不活跃,生态停滞。Ts.ED 是运行时方案,通过类装饰器注册 metadata,直接生成 OAS。
10
+
11
+ ## 2. 核心架构
12
+
13
+ ### 2.1 三层分离(安全边界)
14
+
15
+ Dto 和 Entity 完全独立生成(无继承关系),Entity 上的敏感字段不可能通过 Dto → OAS 链泄露。
16
+
17
+ ```
18
+ OAS ← Ts.ED 从 @Property() 生成
19
+ │
20
+ Controller ← Ts.ED @Controller, 引用 Dto
21
+ │
22
+ Dto Layer ← Ts.ED class @Property()
23
+ ├── ClientDto — 纯字段, 输入用 (POST/PUT body, Filter, VexRepository)
24
+ └── ClientDtoWithRelation — extends ClientDto, + whitelist relation, 输出用 (GET response)
25
+ │
26
+ ─── 安全边界 ───
27
+ │
28
+ Entity Layer ← TypeORM class @Column(), 无 @Property(), 含敏感字段
29
+ └── ClientEntity — DB 全量字段 + 全量 relation
30
+ │
31
+ DB (PostgreSQL)
32
+ ```
33
+
34
+ ### 2.2 每个 Schema 生成 5 个文件
35
+
36
+ | 文件 | 类型 | 装饰器 | 用途 |
37
+ |------|------|--------|------|
38
+ | `_types/dtos/{Doc}Dto.gen.ts` | class | `@Property()` | 输入 body、Filter、VexRepository 绑定 |
39
+ | `_types/dtos/{Doc}DtoWithRelation.gen.ts` | class extends `{Doc}Dto` | `@Property(() => Target)` | 输出 response、带 whitelist relation |
40
+ | `_models/{Doc}Model.gen.ts` | class | `@Entity/@Column/@XtoY` | DB 实体,无 `@Property()` |
41
+ | `_controllers/{Doc}Controller.gen.ts` | class | `@Controller/@Get/@BodyParams` | Ts.ED 路由 handler |
42
+ | `_types/{Doc}.gen.ts` | enum + 工具 type | 无 | 枚举声明、Filter 辅助类型 |
43
+
44
+ ## 3. Dto 设计
45
+
46
+ ### 3.1 ClientDto(输入用)
47
+
48
+ ```ts
49
+ // _types/dtos/ClientDto.gen.ts
50
+ import { Property, Required } from "@tsed/schema";
51
+
52
+ export class ClientDto {
53
+ @Property()
54
+ @Required()
55
+ name!: string;
56
+
57
+ @Property()
58
+ email?: string;
59
+
60
+ @Property()
61
+ clientType?: ClientTypeEnum;
62
+ }
63
+ ```
64
+
65
+ - 不包含任何 relation 字段 — 保证 POST/PUT body 不接受 `profile: {...}`
66
+ - `@Required()` 对应 JSON Schema `required` 数组
67
+ - 枚举类型引用 `_types/{Doc}.gen.ts` 中生成的 enum
68
+ - `json-schema-to-typescript` 废弃 — 由自定义 DtoTemplate() 生成
69
+
70
+ ### 3.2 ClientDtoWithRelation(输出用)
71
+
72
+ ```ts
73
+ // _types/dtos/ClientDtoWithRelation.gen.ts
74
+ import { Property } from "@tsed/schema";
75
+ import { ProfileDtoWithRelation } from "./ProfileDtoWithRelation.gen";
76
+
77
+ export class ClientDtoWithRelation extends ClientDto {
78
+ // whitelisted one-to-many
79
+ @Property(() => ProfileDtoWithRelation)
80
+ profiles?: ProfileDtoWithRelation[];
81
+
82
+ // whitelisted many-to-one
83
+ @Property(() => UserDtoWithRelation)
84
+ user?: UserDtoWithRelation;
85
+ }
86
+ ```
87
+
88
+ - extends `ClientDto` — 继承纯字段,按需添加 relation
89
+ - `@Property(() => TargetDtoWithRelation)` — Ts.ED 用 thunk 延迟解析,避免循环 import 的 TDZ
90
+ - 只包含 `joinWhitelist` 内的 relation
91
+
92
+ ### 3.3 枚举
93
+
94
+ ```ts
95
+ // _types/Client.gen.ts
96
+ export enum ClientTypeEnum {
97
+ basic = "basic",
98
+ premium = "premium"
99
+ }
100
+ ```
101
+
102
+ 被 `ClientDto` 和 `ClientEntity` 两方引用。
103
+
104
+ ## 4. Entity 设计
105
+
106
+ ```ts
107
+ // _models/ClientModel.gen.ts
108
+ import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";
109
+ import { ClientTypeEnum } from "../_types/Client.gen";
110
+
111
+ @Entity("client")
112
+ export class ClientEntity {
113
+ @PrimaryGeneratedColumn("uuid")
114
+ _id!: string;
115
+
116
+ @Column({ type: "varchar", length: 100 })
117
+ name!: string;
118
+
119
+ @Column({ type: "varchar" })
120
+ passwordHash!: string; // 敏感字段 — 不在 Dto 中
121
+
122
+ @Column({ type: "enum", enum: ClientTypeEnum })
123
+ clientType?: ClientTypeEnum;
124
+ }
125
+ ```
126
+
127
+ - 无 `@Property()` — 不做 OAS 源头
128
+ - 含全部 DB 字段 + 全量 relation
129
+ - 当前 `export * from "../_types/..."` 废弃 — Dto 独立 import
130
+
131
+ ## 5. Controller 设计
132
+
133
+ ### 5.1 装饰器映射
134
+
135
+ | tsoa | Ts.ED |
136
+ |------|-------|
137
+ | `@Route("client")` | `@Controller("/client")` |
138
+ | `@Tags("Client")` | `@Tag("Client")` |
139
+ | `@Get("{id}")` | `@Get("/:id")` |
140
+ | `@Post()` | `@Post()` |
141
+ | `@Put("{id}")` | `@Put("/:id")` |
142
+ | `@Patch("{id}")` | `@Patch("/:id")` |
143
+ | `@Delete("{id}")` | `@Delete("/:id")` |
144
+ | `@Body() body: Client` | `@BodyParams() body: ClientDto` |
145
+ | `@Path() id: string` | `@PathParams("id") id: string` |
146
+ | `@Query() join` | `@QueryParams("join") join: string[]` |
147
+ | `@Middlewares(Auth.mid)` | `@UseBefore(AuthMiddleware)` |
148
+ | `@Security("BearerAuth")` | `@Security("BearerAuth")` |
149
+
150
+ ### 5.2 Controller 模板输出
151
+
152
+ ```ts
153
+ // _controllers/ClientController.gen.ts
154
+ import { Controller, Get, Post, BodyParams, PathParams, QueryParams, UseBefore } from "@tsed/common";
155
+ import { Tag, Security, Property, Required } from "@tsed/schema";
156
+
157
+ import { ClientDto } from "../_types/dtos/ClientDto.gen";
158
+ import { ClientDtoWithRelation } from "../_types/dtos/ClientDtoWithRelation.gen";
159
+ import { ClientEntity } from "../_models/ClientModel.gen";
160
+
161
+ import { VexRepository, VexResponse, Filter, FieldFilter } from "../_types/vex";
162
+ import VexDb from "../_services/VexDb.gen";
163
+ import * as controllerFactory from "./_ControllerFactory.gen";
164
+
165
+ export type FilterClientDto = { [K in keyof ClientDto]?: FieldFilter<ClientDto[K]> } & Filter<ClientDto>;
166
+
167
+ @Controller("/client")
168
+ @Tag("Client")
169
+ @UseBefore(AuthenticationMiddleware)
170
+ export class ClientController extends controllerFactory._ControllerFactory {
171
+ private get repo(): VexRepository<ClientDto> {
172
+ return VexDb.getRepository(ClientEntity) as VexRepository<ClientDto>;
173
+ }
174
+
175
+ @Post("/search")
176
+ getList(@BodyParams() body: { filter: FilterClientDto, join?: string[] }): VexResponse<ClientDtoWithRelation[]> {
177
+ const data = await this.repo.find(body.filter, body.join);
178
+ return { result: { data } };
179
+ }
180
+
181
+ @Get("/:id")
182
+ get(@PathParams("id") id: string): VexResponse<ClientDtoWithRelation> {
183
+ const result = await this.repo.findOne({ _id: id });
184
+ if (!result) throw new VexResErr(404);
185
+ return { result };
186
+ }
187
+
188
+ @Post()
189
+ create(@BodyParams() body: ClientDto): VexResponse<ClientDto> {
190
+ const result = await this.repo.create(body);
191
+ return { result };
192
+ }
193
+
194
+ @Put("/:id")
195
+ replace(@PathParams("id") id: string, @BodyParams() body: ClientDto): VexResponse<ClientDto> {
196
+ const result = await this.repo.replace(id, body);
197
+ return { result };
198
+ }
199
+
200
+ @Patch("/:id")
201
+ update(@PathParams("id") id: string, @BodyParams() body: Partial<ClientDto>): VexResponse<ClientDto> {
202
+ const result = await this.repo.update(id, body);
203
+ return { result };
204
+ }
205
+
206
+ @Delete("/:id")
207
+ delete(@PathParams("id") id: string): VexResponse<void> {
208
+ const existing = await this.repo.findOne({ _id: id });
209
+ if (!existing) throw new VexResErr(404);
210
+ await this.repo.delete(id);
211
+ return { result: undefined };
212
+ }
213
+ }
214
+ ```
215
+
216
+ ### 5.3 `_ControllerFactory` 基类
217
+
218
+ ```ts
219
+ // 当前: import { Controller } from "tsoa";
220
+ // 迁移后:
221
+ import { Controller } from "@tsed/common";
222
+
223
+ export class _ControllerFactory extends Controller {
224
+ protected isObjectId(id: string): boolean {
225
+ return /^[0-9a-fA-F]{24}$/.test(id);
226
+ }
227
+ }
228
+ ```
229
+
230
+ ### 5.4 VexRepository 绑定 Dto
231
+
232
+ Controller 的 repo 绑定到 `ClientDto`(纯字段),底层 `VexDb.getRepository(ClientEntity)` 执行 ORM 操作。通过类型断言桥接:
233
+
234
+ ```ts
235
+ private get repo(): VexRepository<ClientDto> {
236
+ return VexDb.getRepository(ClientEntity) as VexRepository<ClientDto>;
237
+ }
238
+ ```
239
+
240
+ ### 5.5 Filter 类型
241
+
242
+ `keyof ClientDto` 在纯数据 class 上等价于 `keyof` interface—类型完整:
243
+
244
+ ```ts
245
+ export type FilterClientDto = { [K in keyof ClientDto]?: FieldFilter<ClientDto[K]> } & Filter<ClientDto>;
246
+ ```
247
+
248
+ Filter 类型是编译期类型工具,不影响 OAS。
249
+
250
+ ## 6. 静态模板迁移
251
+
252
+ ### 6.1 Middlewares
253
+
254
+ | 当前文件 | 迁移后 |
255
+ |---------|--------|
256
+ | `tsoaAuthentication.ts` | ❌ 废弃 |
257
+ | `Authentication.ts` | Ts.ED `@Middleware()` class |
258
+ | `DataIsolationContext.ts` | Ts.ED `@Middleware()` |
259
+ | `JoinWhitelistMiddleware.ts` | Ts.ED `@Middleware()` + 补充循环路径检测 |
260
+
261
+ Authentication 迁移示例:
262
+
263
+ ```ts
264
+ import { Middleware, Context } from "@tsed/common";
265
+
266
+ @Middleware()
267
+ export class AuthenticationMiddleware {
268
+ async use(@Context() ctx: Context) {
269
+ const token = ctx.request.headers.authorization;
270
+ if (!token) throw new VexResErr(401, undefined, "Missing token");
271
+ ctx.set("user", verifyToken(token));
272
+ }
273
+ }
274
+ ```
275
+
276
+ ### 6.2 Routes
277
+
278
+ | 文件 | 迁移后 |
279
+ |------|--------|
280
+ | `authController.template.ts` | Ts.ED `@Controller` |
281
+ | `authRoute.template.ts` | 保留 Express Router (OAuth redirect) |
282
+ | `LoginUI.ts` | 保留 Express Router (HTML pages) |
283
+ | `OAuthRouteFactory.ts` | 保留 Express Router (passport callbacks) |
284
+ | `routes.template.ts` | **废弃** — 由 `@Configuration.mount` 替代 |
285
+
286
+ ### 6.3 Server entrypoint
287
+
288
+ **迁移前**:
289
+ ```ts
290
+ import { RegisterRoutes } from "./system/_routes/tsoa_routes";
291
+ async function main() {
292
+ const app = express();
293
+ RegisterRoutes(app);
294
+ app.use("/api/auth", AuthRoute.getRouter());
295
+ app.use("/", loginUI.getRouter());
296
+ }
297
+ ```
298
+
299
+ **迁移后**:
300
+ ```ts
301
+ import { PlatformExpress } from "@tsed/platform-express";
302
+ import { Configuration } from "@tsed/common";
303
+
304
+ @Configuration({
305
+ mount: { "/": [ClientController, AuthController] },
306
+ swagger: [{ path: "/swagger", specVersion: "3.0.3" }],
307
+ })
308
+ export class AppModule {}
309
+
310
+ async function main() {
311
+ const platform = await PlatformExpress.bootstrap(AppModule);
312
+ const app = platform.expressApp;
313
+ app.use("/api/auth", AuthRoute.getRouter());
314
+ app.use("/", loginUI.getRouter());
315
+ await platform.listen();
316
+ }
317
+ ```
318
+
319
+ ### 6.4 Services
320
+
321
+ 所有 services 保持 static class,不引入 `@Injectable()`:
322
+ `VexDb`、`VexSystem`、`JWTService`、`JWTKeyStore`、`OAuthStrategyService`、`TypeOrmRepositoryAdapter`、`MongooseRepositoryAdapter`
323
+
324
+ ### 6.5 OAS 生成
325
+
326
+ Ts.ED 从 `@Property()` 装饰器注册的 metadata 自动生成 OpenAPI spec,在 `@Configuration.swagger` 中指定 mount 路径。不再生成 `tsoa.json`。
327
+
328
+ ## 7. 循环引用处理
329
+
330
+ ### 7.1 现状(interface)
331
+
332
+ ```ts
333
+ type ClientWithRelations = Client & {
334
+ profile?: Omit<ProfileWithRelations, 'client'>;
335
+ }
336
+ ```
337
+
338
+ Omit 切断类型展开递归。
339
+
340
+ ### 7.2 Class 方案(TypeScript 层面)
341
+
342
+ Class property 惰性解析,不需要 Omit:
343
+
344
+ ```ts
345
+ class ClientDtoWithRelation extends ClientDto {
346
+ @Property(() => ProfileDtoWithRelation)
347
+ profile?: ProfileDtoWithRelation;
348
+ }
349
+
350
+ class ProfileDtoWithRelation extends ProfileDto {
351
+ @Property(() => ClientDtoWithRelation)
352
+ client?: ClientDtoWithRelation;
353
+ }
354
+ ```
355
+
356
+ TypeScript 不会贪心展开 class property chain。循环 import 由 thunk `() => Target` 解决(调用时模块已加载)。
357
+
358
+ ### 7.3 OAS 双向 \$ref(开放问题)
359
+
360
+ 当 A 和 B 都在彼此的 whitelist 中时:
361
+ - `ClientDtoWithRelation.profile → $ref ProfileDtoWithRelation`
362
+ - `ProfileDtoWithRelation.client → $ref ClientDtoWithRelation`
363
+
364
+ OAS 3.x spec 本身不会因此循环展开——$ref 是静态引用定义。但某些 code generator 在解析双向 $ref 时可能出问题。
365
+
366
+ **状态**:与 tsoa→Ts.ED 迁移正交,不阻塞 migration,单独跟踪。
367
+
368
+ ## 8. 迁移范围
369
+
370
+ ### 8.1 Generator 改动
371
+
372
+ | 文件 | 改动 |
373
+ |------|------|
374
+ | `src/generators/interface/generator.ts` | **废弃** |
375
+ | `src/generators/dto/dto.generator.ts` | **新建** — JSON Schema → Dto class |
376
+ | `src/generators/dto/dto.template.ts` | **新建** — Dto 模板 |
377
+ | `src/generators/dto/dtoWithRelation.template.ts` | **新建** — DtoWithRelation 模板 |
378
+ | `src/generators/db/typeormEntity.generator.ts` | 移除 `export *`、移除 `Partial<Client>` |
379
+ | `src/generators/controller/controller.template.ts` | tsoa → Ts.ED 装饰器全套替换 |
380
+ | `src/generators/controller/controllers.generator.ts` | import path `_types/` → `_types/dtos/` |
381
+ | `src/generators/middlewares/RBACmiddleware.generator.ts` | 引用路径调整 |
382
+ | `src/generators/routes/routes.template.ts` | **废弃** |
383
+ | `src/generators/routes/authController.template.ts` | tsoa → Ts.ED |
384
+ | `src/generators/projectSettings/tsoaConfig.generator.ts` | **废弃** |
385
+ | `src/generators/projectSettings/package.template.json` | tsoa deps → Ts.ED deps |
386
+ | `src/generators/app/server.template.ts` | RegisterRoutes → PlatformExpress.bootstrap |
387
+ | `src/index.ts` (pipeline) | 删 interface generator, 加 dto generator |
388
+
389
+ ### 8.2 静态模板改动
390
+
391
+ | 文件 | 改动 |
392
+ |------|------|
393
+ | `_middlewares/tsoaAuthentication.ts` | **删除** |
394
+ | `_middlewares/Authentication.ts` | 重写为 Ts.ED `@Middleware()` |
395
+ | `_middlewares/DataIsolationContext.ts` | 注册模式改 Ts.ED |
396
+ | `_middlewares/JoinWhitelistMiddleware.ts` | 注册模式改 Ts.ED |
397
+ | `_controllers/_ControllerFactory.ts` | tsoa `Controller` → Ts.ED `Controller` |
398
+ | `_projectSettings/package.json` | +Ts.ED deps, -tsoa |
399
+
400
+ ## 9. 依赖变化
401
+
402
+ generated app 的 `package.json`:
403
+ ```json
404
+ // 移除
405
+ "tsoa": "^6.x"
406
+ // 添加
407
+ "@tsed/common": "^8.x",
408
+ "@tsed/platform-express": "^8.x",
409
+ "@tsed/schema": "^8.x",
410
+ "@tsed/swagger": "^8.x"
411
+ ```
412
+
413
+ 本 repo 移除 `json-schema-to-typescript`。
414
+
415
+ ## 10. 迁移策略
416
+
417
+ 全量做完再切:在 `migrate_to_tsed` 分支上完成所有 generator 改动,一次合并到 main。
418
+
419
+ ### 上线检查清单
420
+
421
+ - [ ] `_types/dtos/*` 生成正确
422
+ - [ ] ClientDto 不包含敏感字段、不包含未 whitelisted relation
423
+ - [ ] ClientDtoWithRelation 包含 whitelisted relation
424
+ - [ ] Entity 独立生成且与 Dto 无继承关系
425
+ - [ ] Controller 用 `@BodyParams() body: ClientDto`(非 Entity)
426
+ - [ ] Controller 返回用 `ClientDtoWithRelation`(非 Entity)
427
+ - [ ] Ts.ED 启动正常
428
+ - [ ] OAS 完整且不含 DB 内部字段
429
+ - [ ] POST body 不接受 relation 字段
430
+ - [ ] joinWhitelist middleware 正常工作
431
+ - [ ] OAuth 登录流程正常
432
+ - [ ] LoginUI 页面正常
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "very-express",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "description": "based on json schema and openapi, generate Express RestApi server with mongoDb ",
5
5
  "author": "Justin26l",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "lint": "eslint ./src --ext .ts --fix",
16
16
  "compile": "node ./scripts/build.js && node ./scripts/copyTsTemplates.js",
17
17
  "preversion": "npm run build",
18
- "postversion": "git add . && git commit -m 'lint' && git push && git push --tags"
18
+ "postversion": "git push && git push --tags"
19
19
  },
20
20
  "keywords": [
21
21
  "jsonSchema",