kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
892 stars 235 forks source link

support for ECMAScript modules #799

Open didiercolens opened 2 years ago

didiercolens commented 2 years ago

now that ESM are "the official standard format to package JavaScript code for reuse" and that the feature is stable, are there plans to support them in express-openapi ?

My use case is that I have a handler that uses got and since version 12 it no longer supports cjs modules, so I can't upgrade it unless I can convert my file to an ES module, but then express-openapi would not import it.

robertkiel commented 2 years ago

See https://github.com/kogosoftwarellc/open-api/pull/810