Fork me on GitHub
#ring-swagger
<
2016-09-27
>
danielgrosse11:09:32

Can I use compojure-api to create a GET route, which returns a image file?

elahti11:09:19

@danielgrosse you can just return a ( path-to-file)

danielgrosse12:09:12

@elahti And how Do I change the resource type and check the scheme?

miikka12:09:01

I pushed out ring-swagger 0.22.11 https://github.com/metosin/ring-swagger/blob/master/CHANGELOG.md#02211-2792016. Just a small fix so that the validator does not try to download swagger.json from the Internet.

miikka12:09:27

The URL for swagger.json returns 503 right now 😛

rickmoynihan12:09:05

I have a problem with $refs resolving in a swagger spec with: https://github.com/metosin/scjsv Has anyone managed to get this to work?

miikka12:09:48

I've made it work but unfortunately I have to do something else right now.

miikka12:09:41

Comments on that PR are welcome as well

rickmoynihan12:09:06

miikka: does the PR work?

rickmoynihan12:09:46

or rather does it resolve the issue of swagger $ref's not resolving

miikka12:09:04

Well, the motivation was to avoid downloading swagger.json in ring-swagger from the Internet and I fixed it here: https://github.com/metosin/ring-swagger/pull/112

rickmoynihan12:09:04

I'm not entirely sure on the resolution strategies for json schema

miikka12:09:17

and well, the code does work, but i don't know what's your specific problem with $refs is, so I'm not sure if it will solve it

miikka12:09:22

but now I have to really go ->

rickmoynihan12:09:33

ok thanks 🙂

rickmoynihan12:09:39

sorry to keep you

rickmoynihan12:09:38

My problem is ⬆️ generates ⬇️ error:

ikitommi12:09:31

have you checked the swagger online validator? does it work with it?

rickmoynihan12:09:46

It works with the swagger-cli validator

rickmoynihan12:09:23

oh actually I called it wrong

rickmoynihan13:09:06

ok schema error was actually elsewhere and pretty minor

rickmoynihan13:09:14

I still have the same issue