Sam Chung

Results 61 issues of Sam Chung

🚨 **IMPORTANT: Please do not create a Pull Request without creating an issue first.** _Any change needs to be discussed before proceeding. Failure to do so may result in the...

To switch to @koa/bodyparser we have to [awkwardly](https://github.com/seek-oss/skuba/pull/1605/files/163bb4c83bc5a99dc239427638e7b4ab5fd8970c#diff-39451b878c65c8e692521921cfd21ca3c8c1a7367bb5845570f7a0c5202b522eR36) declare a dependency on `@types/cobody` or resort to using `skipLibCheck` as this library is [referencing types](https://github.com/koajs/bodyparser/blob/031348a2d469dd288dc21cd10d8de280d9936f2c/src/body-parser.types.ts#L1) it whilst declaring it as a...

https://github.com/nodejs/package-maintenance/pull/606 At the moment we use it to manage our pnpm version. https://github.com/seek-oss/skuba/blob/138129daab25e612d650b2e79b69fa5386035149/template/lambda-sqs-worker/Dockerfile#L6 https://github.com/seek-oss/skuba/blob/138129daab25e612d650b2e79b69fa5386035149/template/lambda-sqs-worker/package.json#L41 We probably need to write an autofix of sorts but I'm not entirely sure what the...

```ts const jobId = z .string() .refine(() => { // complex validation logic return true; }) .meta({ id: "jobId" }); console.log( JSON.stringify( z.toJSONSchema( z.object({ current: jobId, previous: jobId.describe("previous job id"),...

https://github.com/colinhacks/zod/issues/4089 `.optional()` and `.nonoptional()` shouldn't actually change our type as optionality and nullability are different things. I've changed it to just pipe through our inner type.

Howdy Colin, loving exploring through v4 so far. I was comparing some of the output of `.toJSONSchema` with my own library https://github.com/samchungy/zod-openapi so I can delete some of my generation...

Something tricky to deal with in my library when generating JSON Schema from Zod Types was figuring out whether to generate an `input` (request) type or a `output` (response) type....

Fixes https://github.com/samchungy/zod-openapi/issues/437

Resolves https://github.com/samchungy/zod-openapi/issues/436

https://v4.zod.dev/ecosystem I am aware and will be seeing how we can migrate in an easy way :) Probably will require: 1. Add a codegen to migrate from `.openapi()` to `.meta()`....