Export OpenAPI to native/plain javascript

15 Views Asked by At

Friends convinced me to use OpenAPI to document the REST API for my embedded web server project. Now I struck at the point to generate/export javascript code that I can integrate into my embedded server to deliver it to clients. Until now I could not find a tool that can generate native javascript modules, that I can easily embed into my webserver.

I used the openapi-generator to generate javascript code. Unfortunately all generators that I found require node.js or other additional platforms: openapi generators.

With searching the internet I could not find suitable tools that can generate plain/native javascript. I started to read openapi-generator manual about creating custom extensions. But I recognized that my friend's request to provide a well defined API specification gets more and more complex and I think about switching back to a non-specified API with custom/propriatory/handwritten javascript code.

Does anyone know if there are OpenAPI code generators that can generate native javascript (without any additional libraries)?

Thank you

0

There are 0 best solutions below