We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const LimitOrderBatchReplaceObject = z.object({ orderId: z.string() }).and( z.object({ success: z.literal(true) }).or( z.object({ success: z.literal(false), failReason: z.string(), }), ), );
export type PutApiOrderLimit200ItemAllOf = { orderId: string; }; export type PutApiOrderLimit200ItemAllOfTwo = PutApiOrderLimit200ItemAllOfTwoAnyOf | PutApiOrderLimit200ItemAllOfTwoAnyOfTwo; export type PutApiOrderLimit200ItemAllOfTwoAnyOf = { success: true; }; export type PutApiOrderLimit200ItemAllOfTwoAnyOfTwo = { failReason: string; success: boolean; };
msw
( Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1 ).map(() => ({ orderId: faker.word.sample(), { success: faker.datatype.boolean() }, { failReason: faker.word.sample() } })) )
export type PutApiOrderLimit200ItemAllOf = { orderId: string; }; export type PutApiOrderLimit200ItemAllOfTwo = PutApiOrderLimit200ItemAllOfTwoAnyOf | PutApiOrderLimit200ItemAllOfTwoAnyOfTwo; export type PutApiOrderLimit200ItemAllOfTwoAnyOf = { success: true; }; export type PutApiOrderLimit200ItemAllOfTwoAnyOfTwo = { failReason: string; success: false; };
Array.from( { length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => ({ orderId: faker.word.sample(), success: faker.datatype.boolean(), failReason: faker.word.sample() }) );
orval version: 7.3.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What are the steps to reproduce this issue?
msw
What were you expecting to happen?
msw
Any logs, error output, etc?
Any other comments?
What versions are you using?
orval version: 7.3.0
The text was updated successfully, but these errors were encountered: