feat: enable type-aware no-base-to-string rule, fix 56 violations (#22750)
This commit is contained in:
parent
c802695ee9
commit
8aa0f9fe95
26 changed files with 87 additions and 55 deletions
|
|
@ -33,7 +33,7 @@ function generate(schema: z.ZodType) {
|
|||
schema.examples = [schema.default]
|
||||
}
|
||||
|
||||
schema.description = [schema.description || "", `default: \`${schema.default}\``]
|
||||
schema.description = [schema.description || "", `default: \`${String(schema.default)}\``]
|
||||
.filter(Boolean)
|
||||
.join("\n\n")
|
||||
.trim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue