Commit graph

797 commits

Author SHA1 Message Date
Tommi Reiman
8dc1e50c44
Merge pull request #182 from hjhamala/support-vectors-in-baselevel-data-specs
Add support for vector based specs in Swagger generation
2018-11-21 14:41:47 +02:00
Heikki Hämäläinen
24c146a702 Add support for vector based specs in Swagger generation
This allows data specs to be in vectors as well as maps. Before the change data spec [{:foo string?}] would throw exception when generating Swagger.
2018-11-21 14:23:33 +02:00
Tommi Reiman
883a65acca Document the router options 2018-11-19 21:04:38 +02:00
Tommi Reiman
dd6b07aa0f Release 0.2.8 2018-11-18 22:31:13 +02:00
Tommi Reiman
4663812afc
Merge pull request #177 from metosin/composing_middleware_interceptor_transformations
Support composable transformations of mw/interceptor chain
2018-11-18 22:27:19 +02:00
Tommi Reiman
ffc36fce36 Support composable transformations of mw/interceptor chain
* fixes #167
2018-11-18 22:19:30 +02:00
Tommi Reiman
18a9cdb802 Update Changelog 2018-11-17 21:26:52 +02:00
Tommi Reiman
cca55c5bd5 Add regression test for swagger-spec 3arity handler 2018-11-17 21:25:40 +02:00
Tommi Reiman
8bb5755ced
Merge pull request #176 from metosin/spec-errors
Expose spec problems to error handlers
2018-11-17 21:17:36 +02:00
Tommi Reiman
37cb99a13e Expose spec problems to error handlers 2018-11-17 20:50:04 +02:00
Tommi Reiman
c3af856893
Merge pull request #174 from nenadalm/async_ring
Support swagger with async ring
2018-11-17 12:23:04 +02:00
Miloslav Nenadal
13141027ee Support swagger with async ring 2018-11-17 11:11:55 +01:00
Tommi Reiman
02308b582d Interceptors diff context, not request 2018-11-11 22:31:02 +02:00
Tommi Reiman
3f910c25f8
Merge pull request #165 from metosin/log-mw-interceptors
Middleware & Interceptor chain visualization, part1 (WIP)
2018-11-11 22:24:44 +02:00
Tommi Reiman
4bfafaffec Diff printing middleware & interceptors 2018-11-11 22:23:51 +02:00
Tommi Reiman
a205d14afc Update to 0.2.7 with new spec-tools 2018-11-11 22:03:16 +02:00
Tommi Reiman
69592c0f68 Bump up top 0.2.6 2018-11-09 15:41:13 +02:00
Tommi Reiman
8f2ac022c4 Update deps 2018-11-09 15:38:11 +02:00
Miikka Koskinen
b49325d81d
Update CHANGELOG.md 2018-11-08 14:29:31 +02:00
Miikka Koskinen
102e22af29
Merge pull request #170 from metosin/fix-169
Fix ClojureScript compiler warnings
2018-11-08 14:26:28 +02:00
Miikka Koskinen
1a13a24224 In ClojureScript, satisfies? is a macro
Thus `partial` can't be used with it.
2018-11-08 10:00:57 +02:00
Miikka Koskinen
65886c190f Do not use cljs.string/replace-all, it's private
The 1.10.439 release of compiler complains about it. Fixes #169.
2018-11-08 10:00:23 +02:00
Tommi Reiman
010211f7ec
Merge pull request #164 from smahood/slash_handler_docs
Update docs for slash-handler
2018-11-05 23:38:37 +02:00
Shaun Mahood
4016acb8ea
Update docs for slash-handler
Composing routes isn't explained until later, so anyone reading the docs from start to finish would not know how to use the default-handler and slash-handler together until they read the resource-handler section. Took me a bit of time to realize this so hopefully something like this would save a bit of work for other new users.
2018-11-05 14:24:17 -07:00
Tommi Reiman
e4b6b41554 Update CHANGELOG 2018-11-04 21:05:34 +02:00
Tommi Reiman
8f26ce8a32
Merge pull request #163 from metosin/perf_tuning
Perf tuning
2018-11-04 20:57:55 +02:00
Tommi Reiman
1623d001d1 Link to original source files 2018-11-04 20:55:27 +02:00
Tommi Reiman
48318b8793 Fix to if-some as the docs say 2018-11-04 20:54:52 +02:00
Tommi Reiman
35993ff257 Rerun segment-router perf tests 2018-11-04 10:07:27 +02:00
Tommi Reiman
f84a597c3f 10% faster in opensensors/real-world test 2018-11-04 10:03:46 +02:00
Tommi Reiman
9ce898a0b4 3x faster default path-parameter decoding 2018-11-04 09:57:32 +02:00
Tommi Reiman
10dc5702a1 Merge branch 'master' of github.com:metosin/reitit 2018-11-03 19:37:32 +02:00
Tommi Reiman
bd76fd6d0e Benchmark against httprouter, reitit is ~3-6x slower 2018-11-03 19:37:26 +02:00
Tommi Reiman
1af3beda6a
Merge pull request #162 from dancek/work-with-multiple-trailing-slashes
Support stripping multiple slashes
2018-11-03 14:16:45 +02:00
Tommi Reiman
2c58205e85 Better Exception docs 2018-10-31 19:25:21 +02:00
Hannu Hartikainen
6a7fb095cb Support stripping multiple slashes
One inspiration for stripping/adding slashes automatically in reitit was
https://github.com/julienschmidt/httprouter which can handle any number
of slashes. Make the implementation a bit better by stripping as many
slashes as there are.

This still doesn't support redirecting from a multiple-slash URI to a
single-slash URI. That could be handled as a special case, but in the
end I think the correct solution would be to convert both the router and
request URIs to a canonical form before matching. Then the question of
slashes is just a question of formatting.
2018-10-31 09:48:13 +02:00
Tommi Reiman
d24f86ccfe
Merge pull request #161 from dancek/patch-2
Correct testing instructions for contributors
2018-10-31 09:44:11 +02:00
Hannu Hartikainen
b7a5a6785f
Correct testing instructions for contributors 2018-10-31 09:36:45 +02:00
Miikka Koskinen
2d045511bb
Merge pull request #160 from dancek/fix-tests
Fix tests (add missing require)
2018-10-31 08:56:51 +02:00
Hannu Hartikainen
52a476c661 Fix tests (add missing require) 2018-10-31 08:48:14 +02:00
Tommi Reiman
399ceca7bb FIx date-format in CHANGELOG 2018-10-30 20:33:15 +02:00
Tommi Reiman
fdbab455bd 0.2.5 2018-10-30 20:25:14 +02:00
Tommi Reiman
61aa981da7 Update Ring to 1.7.1 2018-10-30 20:24:44 +02:00
Tommi Reiman
3db3ec68f3 Update CHANGELOG 2018-10-30 19:57:13 +02:00
Tommi Reiman
2b0700f887 Update Gitbook docs 2018-10-30 19:53:48 +02:00
Tommi Reiman
2a08ba2c98 Polish code 2018-10-30 19:51:19 +02:00
Tommi Reiman
763440e41f Format code 2018-10-30 19:50:18 +02:00
Tommi Reiman
3e6f1c0548
Merge pull request #159 from valerauko/trailing-slash
Handle trailing slashes
2018-10-30 19:43:32 +02:00
Unknown
1fc4fc7f60 Add docs 2018-10-31 00:10:04 +09:00
Unknown
da29203cc8 Add tests for :strip and :both 2018-10-30 23:48:35 +09:00