Questions tagged [oas-tools]

2 questions
2
votes
0 answers

oas tools module import issue when doing tests with jest

I ran into this issue "You need to run with a version of node that supports ES Modules in the VM API. See https://jestjs.io/docs/ecmascript-modules" which is because of the import of modules in the…
Josh-Tea
  • 31
  • 2
1
vote
0 answers

How to use initializeMiddleware of oas tools to add customized properties to the HTTP request?

I am trying to replace the existing swagger tools in my project with oas-tools. Source code shown as follows const express = require('express'); const swaggerTools = require('swagger-tools'); const oasTools = require('oas-tools'); const {…
Josh-Tea
  • 31
  • 2