Skip to content

Commit 32946e8

Browse files
committed
todo for refactoring.
1 parent 8e8e4d8 commit 32946e8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ const canMerge = R.pipe(
160160
R.isEmpty,
161161
);
162162

163+
/** @todo DNRY with flattenIO() */
163164
const intersect = (
164165
children: Array<JSONSchema.BaseSchema>,
165166
): JSONSchema.ObjectSchema => {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const isJsonObjectSchema = (
55
subject: JSONSchema.BaseSchema,
66
): subject is JSONSchema.ObjectSchema => subject.type === "object";
77

8+
/** @todo DNRY with intersect() */
89
export const flattenIO = (jsonSchema: JSONSchema.BaseSchema) => {
910
const stack = [{ entry: jsonSchema, isOptional: false }];
1011
const flat: Required<

0 commit comments

Comments
 (0)