Feature Request : Swagger2Openapi provide convertObj as a separate package
See original GitHub issueFeature Request:
convertObj() as a separate package
I am trying to create a HTML5 CustomElement which can be used in the browser to display REST documentation and also can be seamlessly integrated with other HTML documents.
I depend heavily on Swagger2Openapi for this.
But, the custom-element that I am building ends up becoming a large element. Upon inspection I found Swagger2Openapi depends upon certain packages that is not needed in modern-browser or modern-node environment. Such as esprima which is used by js-yaml.
Would you consider extracting out convertObj() method and provide it as a separate leaner package for modern node and browser environments?
Thanks for this amazing set of packages
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (14 by maintainers)
Top Results From Across the Web
How to use the swagger2openapi.convert function in ... - Snyk
To help you get started, we've selected a few swagger2openapi.convert examples ... try { converter.convert(obj,options,async function(err,options){ if (err) ...
Read more >The orval from anymaniax - Coder Social
I want to track progress of my POST request. With Axios I would usually pass an onUploadProgress parameter to axios.post(...) . With orval...
Read more >The oas-kit from Mermade - GithubHelp
Feature request : I would be very nice to provide context info to help locate the errors reported on validation. Line/col can work....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@MikeRalphson thanks, numbers look great! I will check it in ReDoc and let you know how it worked!
I’ve added a new webpack config file
webpack.converter.js(and also awebpack.validator.js) which results in a bundle of 214KB (64KB gzipped) for the converter only. I think this is a pretty good reduction, and thank you again for the suggestion.I’d really appreciate you reporting back if it works ok in your app once released.