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

I got a "schemaValidationMessages" when i deploy to IIS. #188

Open
CharlesWhiteSun opened this issue Jan 23, 2019 · 5 comments
Open

I got a "schemaValidationMessages" when i deploy to IIS. #188

CharlesWhiteSun opened this issue Jan 23, 2019 · 5 comments

Comments

@CharlesWhiteSun
Copy link

Dear Sir, i got a error message button when deployed my swaggerwcf to iis, when it connected to api doc, it showed like this:
error-01

When i tab the button, it opened another windows and got a json:
error-02

I have no idea about it and can not fix, please kindly help me, thank you.

@justin0522
Copy link
Contributor

@aronyaffe
Copy link

Is there a way to disable that error? Something like .EnableSwaggerUi(c => { c.DisableValidator(); });
Thanks!

@justin0522
Copy link
Contributor

need to change the swagger-ui
unzip \src\SwaggerWcf\www\swagger-ui.zip
find index.html , change like this
window.swaggerUi = new SwaggerUi({
url: url,
validatorUrl: "",
dom_id: "swagger-ui-container",
......
zip the folder

@lichen0210
Copy link

need to change the swagger-ui
unzip \src\SwaggerWcf\www\swagger-ui.zip
find index.html , change like this
window.swaggerUi = new SwaggerUi({
url: url,
validatorUrl: "",
dom_id: "swagger-ui-container",
......
zip the folder

It works,thanks

@justin0522
Copy link
Contributor

glad to hear that

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

4 participants