open-api icon indicating copy to clipboard operation
open-api copied to clipboard

require('openapi-schema-validator') no longer works as documented

Open naugtur opened this issue 6 years ago • 3 comments

currently available build (v3.0.3) exports a default so the example in readme will throw because it's not calling a constructor.

Should the build be fixed or the docs?

naugtur avatar Feb 12 '19 09:02 naugtur

Should the build be fixed or the docs?

yes. please open a PR!

jsdevel avatar Feb 12 '19 16:02 jsdevel

I will, just wanted to know if exporting default was intended behavior. I'd only update readme in that case

naugtur avatar Feb 14 '19 21:02 naugtur

@naugtur it is. we refactored to es6 and now only export to .default for commonJS.

jsdevel avatar Feb 14 '19 22:02 jsdevel