/src/node_modules/@influxdata/oats/dist/generate.js:32
server: this.doc.servers[0].url,
^
TypeError: Cannot read property '0' of undefined
at Generator.registerPathOperation (/src/node_modules/@influxdata/oats/dist/generate.js:32:37)
at new Generator (/src/node_modules/@influxdata/oats/dist/generate.js:24:26)
at generate (/src/node_modules/@influxdata/oats/dist/generate.js:219:23)
at async Command.<anonymous> (/src/node_modules/@influxdata/oats/bin/oats:7:18)
Run with:
docker run -v ${PWD}:/test --entrypoint /src/node_modules/.bin/oats quay.io/influxdb/oats /test/swagger.yaml
A swagger definition is valid without this directive, but oats requires it.
Given the following swagger:
Oats returns the following error:
Run with: