Fork me on GitHub
#ring-swagger
<
2018-10-25
>
ro614:10:18

@ikitommi Hello! Just getting set up with compojure-api and having a strange error when trying to access the /swagger.json endpoint. My best guess is some version incompatibility in the Jackson libraries? I'm going to run on Datomic Ions, so I'm pinned at com.fasterxml.jackson.core/jackson-core {:mvn/version "2.9.5"}

ikitommi15:10:07

@robert.mather.rmm it’s an issue in frankiesardo/linked, see https://github.com/frankiesardo/linked/issues/8. DId a PR to fix that 3 months ago, not published yet. Feel free to poke Frankie to get it out. Meanwhile, adding direct dependency to a working fork should fix it: [ikitommi/linked "1.3.1-alpha1"].

ro615:10:18

@ikitommi Thank you sir, testing now.

ro615:10:23

@ikitommi Didn't work on first pass, looking into the tools.deps dependency tree now

ro615:10:09

@ikitommi Tested and working after adding explicit exclusion on the other one. Thanks so much! That would have taken me hours to find on my own.

ro618:10:37

Has anyone used compojure-api behind AWS API Gateway, or any situation where your sites root is actually on a subroute? Swagger-ui isn't working for me and I think it's because it assumes it's hosted on the root.

ikitommi18:10:32

there is :basePath property in the swagger spec for that.

ro618:10:44

great, thanks