Skip to content

Commit ad1e8ad

Browse files
committed
Simpler type.
1 parent 3efdb62 commit ad1e8ad

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

express-zod-api/src/json-schema-helpers.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ export const flattenIO = (
2929
mode: "coerce" | "throw" = "coerce",
3030
) => {
3131
const stack = [{ entry: jsonSchema, isOptional: false }];
32-
const flat: Pick<
33-
JSONSchema.ObjectSchema,
34-
"description" | "examples" | "required"
35-
> &
36-
Required<Pick<JSONSchema.ObjectSchema, "type" | "properties">> = {
32+
const flat: JSONSchema.ObjectSchema &
33+
Required<Pick<JSONSchema.ObjectSchema, "properties">> = {
3734
type: "object",
3835
properties: {},
3936
};

0 commit comments

Comments
 (0)