Azure / Azure/azure-functions-openapi-extension

Is it possible to disable swagger JSON validation in Swagger - UI?

Open
#450 4 comments 6 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

I am using a HTTP trigger Function app with Azure AD auth. I don't want to validate the Swagger json with "https://validator.swagger.io/validator/debug?url=xxx" as the validator.swagger.io won't have access to this url xxx.
Is there a way I can disable the validation process in the swagger-ui?

![image](https://user-images.githubusercontent.com/52419369/174019806-f40edb4e-f614-4a27-ab2d-df86aaf3f13d.png)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Swagger UI configuration used by the Azure Functions OpenAPI extension and the request to validator.swagger.io/validator/debug. Determine whether validation can be disabled for an authenticated HTTP-triggered Function app, then verify that the UI loads the protected Swagger JSON without external validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.