Skip to content

Commit

Permalink
fix(msw): also split allof objects (#1442)
Browse files Browse the repository at this point in the history
Co-authored-by: Alfred Jonsson <alfred.jonsson@decerno.se>
  • Loading branch information
AllieJonsson and Alfred Jonsson authored Jun 7, 2024
1 parent 991ac17 commit e3e680f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mock/src/faker/resolvers/value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const resolveMockValue = ({
});
if (
scalar.value &&
newSchema.type === 'object' &&
(newSchema.type === 'object' || newSchema.allOf) &&
combine?.separator === 'oneOf'
) {
const funcName = `get${pascal(operationId)}Response${pascal(newSchema.name)}Mock`;
Expand Down

0 comments on commit e3e680f

Please sign in to comment.