@tsed/platform-test-sdk 8.17.3 → 8.18.1

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,6 +33,9 @@ let TestQueryParamsCtrl = class TestQueryParamsCtrl {
33
33
  testScenario8(value) {
34
34
  return { value };
35
35
  }
36
+ testScenario7(value) {
37
+ return { value };
38
+ }
36
39
  };
37
40
  __decorate([
38
41
  Get("/scenario-1"),
@@ -76,6 +79,13 @@ __decorate([
76
79
  __metadata("design:paramtypes", [Array]),
77
80
  __metadata("design:returntype", Object)
78
81
  ], TestQueryParamsCtrl.prototype, "testScenario8", null);
82
+ __decorate([
83
+ Get("/scenario-7"),
84
+ __param(0, QueryParams("test")),
85
+ __metadata("design:type", Function),
86
+ __metadata("design:paramtypes", [Array]),
87
+ __metadata("design:returntype", Object)
88
+ ], TestQueryParamsCtrl.prototype, "testScenario7", null);
79
89
  TestQueryParamsCtrl = __decorate([
80
90
  Controller("/query-params")
81
91
  ], TestQueryParamsCtrl);
@@ -235,4 +245,11 @@ export function testQueryParams(options) {
235
245
  expect(response.body).toEqual({ value: ["1", "2"] });
236
246
  });
237
247
  });
248
+ describe("Scenario7: String[] value without correct metadata", () => {
249
+ const endpoint = "/rest/query-params/scenario-7";
250
+ it("should throw Bad Request", async () => {
251
+ const response = await request.get(`${endpoint}?test=1&test=2`).expect(400);
252
+ expect(response.badRequest).toEqual(true);
253
+ });
254
+ });
238
255
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/platform-test-sdk",
3
3
  "description": "Package to test platform adapter integration with Ts.ED",
4
4
  "type": "module",
5
- "version": "8.17.3",
5
+ "version": "8.18.1",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
@@ -28,25 +28,25 @@
28
28
  "Adapter"
29
29
  ],
30
30
  "dependencies": {
31
- "@tsed/ajv": "8.17.3",
32
- "@tsed/core": "8.17.3",
33
- "@tsed/di": "8.17.3",
34
- "@tsed/json-mapper": "8.17.3",
31
+ "@tsed/ajv": "8.18.1",
32
+ "@tsed/core": "8.18.1",
33
+ "@tsed/di": "8.18.1",
34
+ "@tsed/json-mapper": "8.18.1",
35
35
  "@tsed/logger": "8.0.0",
36
- "@tsed/platform-cache": "8.17.3",
37
- "@tsed/platform-http": "8.17.3",
38
- "@tsed/platform-params": "8.17.3",
39
- "@tsed/platform-router": "8.17.3",
40
- "@tsed/platform-views": "8.17.3",
41
- "@tsed/schema": "8.17.3",
42
- "@tsed/swagger": "8.17.3",
36
+ "@tsed/platform-cache": "8.18.1",
37
+ "@tsed/platform-http": "8.18.1",
38
+ "@tsed/platform-params": "8.18.1",
39
+ "@tsed/platform-router": "8.18.1",
40
+ "@tsed/platform-views": "8.18.1",
41
+ "@tsed/schema": "8.18.1",
42
+ "@tsed/swagger": "8.18.1",
43
43
  "ajv": "^8.17.1",
44
44
  "axios": "1.7.7",
45
45
  "read-pkg-up": "7.0.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@tsed/barrels": "8.17.3",
49
- "@tsed/typescript": "8.17.3",
48
+ "@tsed/barrels": "8.18.1",
49
+ "@tsed/typescript": "8.18.1",
50
50
  "eslint": "9.12.0",
51
51
  "typescript": "5.4.5"
52
52
  },