Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the 0.8.x version of disable_validator for swagger_ui #273

Open
phtrivier opened this issue Apr 22, 2022 · 1 comment
Open

What is the 0.8.x version of disable_validator for swagger_ui #273

phtrivier opened this issue Apr 22, 2022 · 1 comment

Comments

@phtrivier
Copy link

phtrivier commented Apr 22, 2022

In the 0.7.0 version, there was an option to disable validation in the SwaggerUI Plug:

scope "/api/swagger" do
      forward "/", PhoenixSwagger.Plug.SwaggerUI, otp_app: :myapp, swagger_file: "swagger.json", disable_validator: true
    end

It is not documented any more in the 0.8.x.

  • Is it the reason I get an "Error" Label at the bottom of the bottom of the page, as explained here : https://stackoverflow.com/a/32244495/77804 ?
    (My swagger config is not publicly available)

  • Is there another way to configure the plug to avoid this validation ?

@phtrivier phtrivier changed the title What is the 0. What is the 0.8.x version of disable_validator for swagger_ui Apr 22, 2022
@fastjames
Copy link
Contributor

The code to support that option appears to have been removed here:
d25b976

which was documented in this #124 . I am not sufficiently familiar with swaggerUI to know why that necessitated the removal of the option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants