~/talk

Is There JavaScript in Swagger Plugins?

TalkinRussianat OdessaJS 2021 · 2021-08-28..08-29· [javascript]
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 2:22Hint system purpose
  3. 7:18Choosing Swagger tool
  4. 12:18Customizing Swagger UI
  5. 17:18Swagger docs issues
  6. 20:13Debugging console source
  7. 27:22First working plugin
  8. 28:49Summary next steps
  9. 29:11Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.