Running Copilot #93
Annotations
10 errors
|
test/openapi.test.ts > OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin' 3` mismatched
- Expected
+ Received
@@ -1484,11 +1484,13 @@
'Success',
'Warning',
'Error'
])),
parameterModel: z.optional(z.union([
- zModelWithString,
+ z._default(zModelWithString, {
+ prop: 'Hello World!'
+ }),
z.null()
]))
}))
});
@@ -1502,11 +1504,13 @@
parameterEnum: z.optional(z.enum([
'Success',
'Warning',
'Error'
])),
- parameterModel: z.optional(zModelWithString)
+ parameterModel: z._default(z.optional(zModelWithString), {
+ prop: 'Hello World!'
+ })
}))
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.optional(z.never()),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/openapi.test.ts > OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin' 2` mismatched
- Expected
+ Received
@@ -1484,11 +1484,13 @@
'Success',
'Warning',
'Error'
])),
parameterModel: z.optional(z.union([
- zModelWithString,
+ zModelWithString.default({
+ prop: 'Hello World!'
+ }),
z.null()
]))
}))
});
@@ -1502,11 +1504,13 @@
parameterEnum: z.optional(z.enum([
'Success',
'Warning',
'Error'
])),
- parameterModel: z.optional(zModelWithString)
+ parameterModel: z.optional(zModelWithString).default({
+ prop: 'Hello World!'
+ })
}))
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.optional(z.never()),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/openapi.test.ts > OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.1.x > 'generate Zod schemas with Zod plugin' 1` mismatched
- Expected
+ Received
@@ -1482,11 +1482,13 @@
'Success',
'Warning',
'Error'
]).optional(),
parameterModel: z.union([
- zModelWithString,
+ zModelWithString.default({
+ prop: 'Hello World!'
+ }),
z.null()
]).optional()
}).optional()
});
@@ -1500,11 +1502,13 @@
parameterEnum: z.enum([
'Success',
'Warning',
'Error'
]).optional(),
- parameterModel: zModelWithString.optional()
+ parameterModel: zModelWithString.optional().default({
+ prop: 'Hello World!'
+ })
}).optional()
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.never().optional(),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/openapi.test.ts > OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin' 3` mismatched
- Expected
+ Received
@@ -1469,11 +1469,13 @@
'Success',
'Warning',
'Error'
])),
parameterModel: z.optional(z.union([
- zModelWithString,
+ z._default(zModelWithString, {
+ prop: 'Hello World!'
+ }),
z.null()
]))
}))
});
@@ -1487,11 +1489,13 @@
parameterEnum: z.optional(z.enum([
'Success',
'Warning',
'Error'
])),
- parameterModel: z.optional(zModelWithString)
+ parameterModel: z._default(z.optional(zModelWithString), {
+ prop: 'Hello World!'
+ })
}))
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.optional(z.never()),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/openapi.test.ts > OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin' 2` mismatched
- Expected
+ Received
@@ -1469,11 +1469,13 @@
'Success',
'Warning',
'Error'
])),
parameterModel: z.optional(z.union([
- zModelWithString,
+ zModelWithString.default({
+ prop: 'Hello World!'
+ }),
z.null()
]))
}))
});
@@ -1487,11 +1489,13 @@
parameterEnum: z.optional(z.enum([
'Success',
'Warning',
'Error'
])),
- parameterModel: z.optional(zModelWithString)
+ parameterModel: z.optional(zModelWithString).default({
+ prop: 'Hello World!'
+ })
}))
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.optional(z.never()),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/openapi.test.ts > OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin':
packages/openapi-ts-tests/zod/v4/test/openapi.test.ts#L70
Error: Snapshot `OpenAPI 3.0.x > 'generate Zod schemas with Zod plugin' 1` mismatched
- Expected
+ Received
@@ -1467,11 +1467,13 @@
'Success',
'Warning',
'Error'
]).optional(),
parameterModel: z.union([
- zModelWithString,
+ zModelWithString.default({
+ prop: 'Hello World!'
+ }),
z.null()
]).optional()
}).optional()
});
@@ -1485,11 +1487,13 @@
parameterEnum: z.enum([
'Success',
'Warning',
'Error'
]).optional(),
- parameterModel: zModelWithString.optional()
+ parameterModel: zModelWithString.optional().default({
+ prop: 'Hello World!'
+ })
}).optional()
});
export const zCallToTestOrderOfParamsData = z.object({
body: z.never().optional(),
❯ test/openapi.test.ts:70:13
❯ test/openapi.test.ts:67:9
|
|
test/3.1.x.test.ts > OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf':
packages/openapi-ts-tests/zod/v4/test/3.1.x.test.ts#L165
Error: Snapshot `OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf' 3` mismatched
❯ test/3.1.x.test.ts:165:11
❯ test/3.1.x.test.ts:162:7
|
|
test/3.1.x.test.ts > OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf':
packages/openapi-ts-tests/zod/v4/test/3.1.x.test.ts#L165
Error: Snapshot `OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf' 2` mismatched
❯ test/3.1.x.test.ts:165:11
❯ test/3.1.x.test.ts:162:7
|
|
test/3.1.x.test.ts > OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf':
packages/openapi-ts-tests/zod/v4/test/3.1.x.test.ts#L165
Error: Snapshot `OpenAPI 3.1.x > 'preserves defaults with $ref and anyOf' 1` mismatched
❯ test/3.1.x.test.ts:165:11
❯ test/3.1.x.test.ts:162:7
|
|
test/3.0.x.test.ts > OpenAPI 3.0.x > 'preserves defaults with $ref and anyOf':
packages/openapi-ts-tests/zod/v4/test/3.0.x.test.ts#L83
Error: Snapshot `OpenAPI 3.0.x > 'preserves defaults with $ref and anyOf' 3` mismatched
❯ test/3.0.x.test.ts:83:11
❯ test/3.0.x.test.ts:80:7
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
|
4.84 KB |
sha256:38964b6a109dbb3e25097b738ce7406ea9d6acd4d8195611a093e1e2be83e7a4
|
|