Sam Chung

Results 61 issues of Sam Chung

Just asking anybody out here, would you like this repo to have a builder Instance? I initially built it without it since I didn't like the instance that zod-to-openapi had...

https://github.com/samchungy/zod-openapi/pull/336 This should have broken some unit tests. Also 3 optionals in an object in a function is terrible. Should probably look to convert this into a discriminated union to...

Having a global registry might cause some issues for people down the line? My team have some monorepos where we publish multiple openapi specs in the same repo, this would...

Resolves https://github.com/colinhacks/zod/issues/4499 ## Summary by CodeRabbit - **Tests** - Added tests verifying JSON Schema output for string schemas with multiple pattern constraints, including chained pattern methods and multiple regex patterns....

```ts import { toJSONSchema, z } from 'zod/v4'; const a = z.string().startsWith('foo').includes('bar'); console.log(JSON.stringify(toJSONSchema(a), null, 2)); ``` Results in: ```json { "type": "string", "pattern": "bar", "$schema": "https://json-schema.org/draft/2020-12/schema" } ``` Which is...

Resolves https://github.com/graphql/dataloader/issues/338

Resolves #4042 I tested my build against the packaged output of this and it seemed to pass

Looks like this fails to build when used with the Node16 TypeScript module resolution. I believe the issue stems from TypeScript checking the `type` being module and assuming all `.js`...

I was working on my library: https://github.com/samchungy/zod-openapi and was trying to simplify how I determine if a schema should be "required". `ZodCatch` I initially thought I could handle as if...

### Description Resolves https://github.com/vitejs/vite/issues/9813 Hey there 👋 , we're on our journey of dropping CJS and we switched to Vitest for ESM. We have `skipLibCheck` disabled by default and noticed...

has workaround
p2-edge-case