Skip to content

Commit ceb626a

Browse files
last comment of Val's
1 parent db3d0f0 commit ceb626a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/helpers/model/discriminator.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ function validateDiscriminatorSchemasForEncryption(parentSchema, childSchema) {
4444
}
4545
}
4646

47-
function* allNestedPaths(schema) {
48-
const { paths, singleNestedPaths } = schema;
49-
yield* Object.keys(paths);
50-
yield* Object.keys(singleNestedPaths);
47+
function allNestedPaths(schema) {
48+
return [...Object.keys(schema.paths), ...Object.keys(schema.singleNestedPaths)];
5149
}
5250

5351
/**

0 commit comments

Comments
 (0)