It does, yes. The validation is done through a service running in ‘the cloud’ 
and it cannot access your file.

You can either run your own validator or disable it to avoid the error.

 

 

 

From: <[email protected]> on behalf of Feorlen 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Monday, 9 January 2017 at 18:05
To: Swagger <[email protected]>
Subject: why "Can't read from file" when swagger-ui otherwise works?

 

I did a test deployment of my project on a clean VM, with the dist directory in 
the same location as my other static content. On other machines it's fine, but 
for some reason Swagger Ui on this one tells me it can't read my YAML file, I 
get a red error button at the bottom of the page.  

 

{"schemaValidationMessages":[{"level":"error","message":"Can't read from file 
http://192.168.16.115:9991/static/swagger/zulip.yaml"}]}
 
It's certainly reading something, because otherwise everything works. I thought 
it was the path to the same file elsewhere in my index.html (which I forgot to 
remove) but I took that out and I still see it. 
 
Does it have something to do with the internal address? The other test machines 
are outside the firewall. Any ideas? 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to