You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our OpeApi specification, we don't have any examples.
I am assuming the below would generate the dynamic mock thanks to mockResponseForOperation. But I don't get any response. The data/mock is empty {}(in our case).
Also i tried api.mockResponseForOperation('OperationId'); it return no mock data(dynamic generated mock). So my questions is it something openapi-backend support or possible?
The text was updated successfully, but these errors were encountered:
Sounds like you're hitting the default mock. It works for me and the project is setup to use a mocking library so your schema probably isn't being provided correctly.
In our OpeApi specification, we don't have any examples.
I am assuming the below would generate the dynamic mock thanks to mockResponseForOperation. But I don't get any response. The data/mock is empty {}(in our case).
api.register('notImplemented', async (c, res, ctx) => {
const { status, mock } = await api.mockResponseForOperation(c.operation.operationId);
return res(ctx.status(status), ctx.json(mock));
});
Also i tried api.mockResponseForOperation('OperationId'); it return no mock data(dynamic generated mock). So my questions is it something openapi-backend support or possible?
The text was updated successfully, but these errors were encountered: