Skip to content

Commit 91f5300

Browse files
authored
Merge branch 'make-v24' into v24-migration
2 parents edd36f4 + 104c7c1 commit 91f5300

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

express-zod-api/tests/__snapshots__/documentation.spec.ts.snap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2307,14 +2307,12 @@ paths:
23072307
required: true
23082308
description: GET /v1/:name Parameter
23092309
schema:
2310-
type: string
23112310
summary: My custom schema
23122311
- name: other
23132312
in: query
23142313
required: true
23152314
description: GET /v1/:name Parameter
23162315
schema:
2317-
type: boolean
23182316
summary: My custom schema
23192317
- name: regular
23202318
in: query
@@ -2336,7 +2334,6 @@ paths:
23362334
type: object
23372335
properties:
23382336
number:
2339-
type: number
23402337
summary: My custom schema
23412338
required:
23422339
- number

express-zod-api/tests/documentation.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,10 +1185,7 @@ describe("Documentation", () => {
11851185
describe("Feature #1470: Custom brands", () => {
11861186
test("should be handled accordingly in request, response and params", () => {
11871187
const deep = Symbol("DEEP");
1188-
const rule: Depicter = ({ jsonSchema }) => ({
1189-
...jsonSchema,
1190-
type: "boolean",
1191-
});
1188+
const rule: Depicter = ({ jsonSchema }) => jsonSchema;
11921189
const spec = new Documentation({
11931190
config: sampleConfig,
11941191
routing: {
@@ -1207,8 +1204,7 @@ describe("Documentation", () => {
12071204
},
12081205
},
12091206
brandHandling: {
1210-
CUSTOM: ({ jsonSchema }) => ({
1211-
...jsonSchema,
1207+
CUSTOM: () => ({
12121208
summary: "My custom schema",
12131209
}),
12141210
[deep]: rule,

0 commit comments

Comments
 (0)