We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3efdb62 commit ad1e8adCopy full SHA for ad1e8ad
1 file changed
express-zod-api/src/json-schema-helpers.ts
@@ -29,11 +29,8 @@ export const flattenIO = (
29
mode: "coerce" | "throw" = "coerce",
30
) => {
31
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">> = {
+ const flat: JSONSchema.ObjectSchema &
+ Required<Pick<JSONSchema.ObjectSchema, "properties">> = {
37
type: "object",
38
properties: {},
39
};
0 commit comments