mswjs / http-middleware

Spawn an HTTP server from your request handlers or apply them to an existing server using a middleware.

Home Page:https://npm.im/@mswjs/http-middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Q. Is there any roadmap for OpenAPI3 documentation?

SPONGE-JL opened this issue · comments

commented

Thanks for mswjs team and stand-alone service on this http-middleware application. It's amazing and easy usage to make stub application.

On the other hand, if the mocked API has been build up with implementation about real app, there would be needed to documation like OAS3. This has been spawn stand alone express in this module, so like swagger-ui-express and swagger-jsdoc would be used on diffent way maybe.

So is there any roadmap for OAS3?

Thanks for sharing your opinion.
Hope you well.

Hi! Thanks for your kind words.

To clarify: do you suggest OA3 -> mock handlers or mock handlers -> OA3?

Okay, circling back to this with my best understanding of the question.

When will this package support OA3?

It won't. The purpose of this package is to translate MSW request handlers to Express handlers. Nothing else.

How do I add OAS to the mix then?

There is a library in the works that will do the "OAS -> request handlers" generation. It's mostly finished. I hope I will announce more news about it next year.