xerions / phoenix_swagger

Swagger integration to Phoenix framework
Mozilla Public License 2.0
691 stars 181 forks source link

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

Open phtrivier opened 2 years ago

phtrivier commented 2 years ago

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.

fastjames commented 2 years ago

The code to support that option appears to have been removed here: https://github.com/xerions/phoenix_swagger/commit/d25b976b9fca08416dc9335c8d5072fbe2534366

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