astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)
openapi-zod-client.vercel.app
795 stars 84 forks source link

feat: improve multline description handling #172

Open scarf005 opened 1 year ago

scarf005 commented 1 year ago

Summary

Detail

when

description: `foo
    bar
baz`

withDescription: true

output:

z.describe(`foo bar baz`)

withDescription: "multiline"

output:

z.describe(`foo
    bar
baz`)
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openapi-zod-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2023 8:10am
astahmer commented 1 year ago

my bad I just noticed the notification for this PR, could you resolve the conflicts so I can merge ? also, can you add a changeset ?