Is There JavaScript in Swagger Plugins?
summary
Embedding a json-logic rule builder into Swagger UI is explored by forking node_modules or hosting a custom Swagger bundle, using React component hooks (class APIs) to inject a plugin per path, capturing the Swagger fetch via a closure to call authenticated endpoints, and setting request bodies via space.setState at request.path.method; when hooks are unavailable the fallback is an iframe "god mode." Integration mostly works but required these hacks and the example repository remains unfinished.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:22Hint system purpose
- 7:18Choosing Swagger tool
- 12:18Customizing Swagger UI
- 17:18Swagger docs issues
- 20:13Debugging console source
- 27:22First working plugin
- 28:49Summary next steps
- 29:11Q&A
related talks
34mFrom Sprockets to js-bundling: Evolution of JavaScript tooling in Rails!
26mwire.js
34mHow to extend webpack with your own plugins
22mEverything's a plugin Understanding webpack from the inside out
45mBundler Bonanza
54mModern JavaScript For Web Dinosaurs
20mOpening Keynote | Everything’s a plugin: Understanding webpack from the inside out
24mDecoding Webpack: Unraveling Its Architecture
