I am looking for a library which would generate a mock data based on openapi spec (client side only). So the idea is not to have a separate local server, as it's done in openapi-mock-express-middleware, but rather have data to be generated on fly inside front-end application.
Something like this I guess:
const spec = someOpenApiMockGenerator('path/to/spec-file.yaml');
const anEndPointData = spec.mock("someEndpointName");
console.log(anEndPointData);
// expected output is same as in expressjs middlware mentioned above.
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I`m trying to undestand whats going on and why defineConstraints is not a functioncan someone help me ?
how do I use a nodejs var inside a json statement, I dont realy have the required vocabulary to explain but here is my simplifyed code:
I have a website built on MongoDB which has files to be downloaded by users other than images ( it can be a software installer orexe file