Skip to content

Commit

Permalink
feat: add exact option to extend
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Jul 28, 2024
1 parent b51099a commit 43917c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,11 @@ export default class ZodRoute<
partialFormatSchema: partialFormatSubschema = defaultPartialFormatSchema(
formatSubschema
) as any,
exact = true,
}: {
formatSchema?: FormatSubschema
partialFormatSchema?: PartialFormatSubschema
exact?: boolean
} = {}
): ZodRoute<
`${Pattern}/${Subpattern}`,
Expand All @@ -243,6 +245,7 @@ export default class ZodRoute<
partialFormatSchema: this.partialFormatSchema.and(
partialFormatSubschema
),
exact,
}
)
}
Expand Down

0 comments on commit 43917c6

Please sign in to comment.