Hey David!

Unfortunately, there's no way to give proxy auth information to the Online 
Validator service. 

You can disable that feature altogether by passing

validatorUrl: null

as a Swagger-UI configuration option, if you want to silence the error in 
your console (and save a request).

On Wednesday, November 15, 2017 at 7:47:17 AM UTC-8, David Hileman wrote:
>
> Hi,
>
> I am trying to use swagger ui, setup like this:
>
>   const ui = SwaggerUIBundle({
>     // fixme: Change to absolute URL when all is setup
>     url: "/static/swagger.json",
>     dom_id: '#swagger-ui',
>     presets: [
>       SwaggerUIBundle.presets.apis,
>       Array.isArray(SwaggerUIStandalonePreset) ? SwaggerUIStandalonePreset 
> : SwaggerUIStandalonePreset.default
>     ],
>     plugins: [
>       SwaggerUIBundle.plugins.DownloadUrl
>     ],
>     layout: "StandaloneLayout"
>   })
>
> However, my computer is required to use a company proxy for outgoing http 
> requests. So when swagger attempts to validate, I get an error like this in 
> my browser console:
>
> Request URL: https://online.swagger.io/validator?url=/static/swagger.json
> Request method: GET
> Status code: 407 Proxy Authentication Required
>
> Is there anyway to configure swagger to authenticate with a proxy when 
> making this call to the validator?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to