Kong / swagger-ui-kong-theme

Plugin theme for Swagger-UI that adds snippets
Apache License 2.0
19 stars 17 forks source link

fix(codesnippet): support relative url in server object #163

Closed nekolab closed 1 year ago

nekolab commented 1 year ago

Per https://swagger.io/specification/v3/, the url field in server object could be relative. But the request.url in har should not be relative.

To fix this, a toAbsoluteUrl was added to convert the relative url in spec file to qualified absolute URL

This fix FTI-4899

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.