Closed davidnadeau closed 5 years ago
Sorry for the trouble! In what sense is docs.yml
the default? Is it defined somewhere? I couldn't find references to docs.yml
anywhere in tapir's source code.
I cannot find it either. If i run this hello world, i get the following error:
Failed to load API definition
Fetch error
Not Found /docs/docs.yml
The url is being rewritten to http://localhost:8080/docs/index.html?url=/docs/docs.yml
. I use firefox as my browser, and tried it in chrome, it gets rewritten correctly to http://localhost:8080/docs/index.html?url=/docs/docs.yaml
.
Something to do with firefox vs chrome?
Hm works fine for me both using firefox and chrome. Maybe you have the old address cached in favorites? I think I did change the yaml file name from docs.yml
to docs.yaml
as various examples used various variants. So maybe that's the cause?
Ya it was cached, worked in firefox incognito as expected. Thank you
The examples using
SwaggerAkka
fail to run on scala 2.13 tapir 0.9.0 because of this line: https://github.com/softwaremill/tapir/blob/master/docs/swagger-ui-akka-http/src/main/scala/tapir/swagger/akkahttp/SwaggerAkka.scala#L17The default yaml file name is actually
docs.yml
, however this file sets it asdocs.yaml
. This was confusing to resolve as a first time tapir user.