Skip to content

Commit 3ced979

Browse files
committed
fix example.
1 parent c173bca commit 3ced979

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

example/example.documentation.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,6 @@ paths:
518518
application/octet-stream:
519519
schema:
520520
type: string
521-
required:
522-
- raw
523521
format: binary
524522
required: true
525523
responses:

express-zod-api/src/documentation-helpers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export const onRaw: Overrider = ({ jsonSchema }) => {
303303
if (!("raw" in objSchema.properties)) return;
304304
Object.assign(jsonSchema, objSchema.properties.raw);
305305
delete jsonSchema.properties; // undo default
306+
delete jsonSchema.required;
306307
};
307308

308309
const enumerateExamples = (examples: unknown[]): ExamplesObject | undefined =>

0 commit comments

Comments
 (0)