Fork me on GitHub
#reitit
<
2023-03-15
>
opqdonut15:03:07

if others are interested in reitit openapi3 support, feel free to try out the latest git master of reitit! leave your comments here: https://github.com/metosin/reitit/issues/84

opqdonut15:03:34

thanks for your comments @U06HHF230

rickmoynihan16:03:05

You’re welcome, and thanks again for the PR! It’s a great contribution 🙇

fuad17:03:36

What git coordinates would I use to get the latest reitit from git using a deps.edn file? I tried specifying :git/repo and :deps/root but it doesn't resolve properly.

rickmoynihan11:03:47

The latest release is still 0.6.0 which doesn’t include the openapi3 stuff. If that’s the stuff you’re wanting to use then I think you need to checkout the latest from master and build/install it locally yourself with a version of something like 0.7.0-SNAPSHOT IIRC I did something like this (apologies but I’ve not checked these commands; just from memory): 1) checkout the master branch 2) run ./scripts/set-version 0.7.0-SNAPSHOT 3) run ./scripts/lein-modules install Then I updated my projects deps.edn to use 0.7.0-SNAPSHOT.

🙌 4
opqdonut16:03:42

yeah it's kinda inconvenient to use lein projects via git from deps projects

👍 2
opqdonut16:03:43

and vice versa

opqdonut16:03:09

for deps-to-deps, :git/repo

Marc Gannon10:04:07

Hi @US1LTFF6D, is there an estimated release date for Reitit openapi 3 support? I've been using the master branch the last few days and it has been working great

opqdonut05:04:01

Pretty much all the pieces are in place, we just need to do some release engineering before we can get the next reitit release out

🙌 2
opqdonut05:04:24

In a couple of weeks?

Marc Gannon08:04:11

Oh great thank you and thanks for all the awesome work you are doing

rickmoynihan17:03:29

I’d like to define a catch all route in a dynamic routing subtree. I can set {:conflict nil} but then I need to ensure that the catch-all is always evaluated last. Obviously I can do something like (concat (generate-dynamic-routes) [catch-all]) but I’m wondering if there’s another way, e.g. to explicitly specify a :fallback in the options or something like that?

ikitommi17:03:07

there is a fallback only on the ring-handler level, e.g. the default branch

ikitommi17:03:32

There is also :conflicting true route data you can set for the conflicting routes, but just ignores those routes from the conflicting list.

rickmoynihan17:03:38

ok cool thanks for clarifying 🙇