Commit graph

379 commits

Author SHA1 Message Date
Joel Kaasinen
35264dc130 doc: update all references metosin/reitit => fi.metosin/reitit 2023-09-11 11:04:36 +03:00
Joel Kaasinen
7352358662 feat: rename openapi :content-types keyword, split for req & resp 2023-09-08 15:17:35 +03:00
Joel Kaasinen
38547e4ad2 doc: update openapi & coercion docs 2023-08-28 15:44:16 +03:00
Tommi Reiman
b0c810a981
Merge pull request #628 from metosin/openapi-parameters
Openapi parameters
2023-08-24 09:25:46 +03:00
Tommi Reiman
81dfe45b72 fix example 2023-08-18 15:17:01 +03:00
Tommi Reiman
12f0970e39 fix example 2023-08-18 15:04:47 +03:00
Juho Teperi
4a182588b4 Release 0.7.0-alpha5 2023-06-14 16:06:20 +03:00
Tommi Reiman
b1404ada6d top-level :request coercion & stuff 2023-05-28 16:49:08 +03:00
Tommi Reiman
ce06214014 welcome 2-phase schema compilation
1) use `:update-paths` to handle data in certain (loose) paths differently
  - accumulate schemas in all relevant routers into vector
  - we do not know the coercion here (ring/http have special handling of data, e.g. http-methods)

2) run coercion compiler for the model to merge the effective model
  - schema + malli = should work ok, spec = best effort

3) publish final schemas into compiled route data
2023-05-21 20:32:40 +03:00
Tommi Reiman
d45dd151b7 document meta-merge 2023-05-21 18:11:42 +03:00
Tommi Reiman
b3383b0396 0.7.3-alpha4 2023-05-17 18:23:05 +03:00
Joel Kaasinen
ed1230d1cf doc: openapi.md: annotating schemas 2023-05-16 17:02:06 +03:00
Juho Teperi
0b6ed62738 Release 0.7.0-alpha3 2023-05-05 12:57:31 +03:00
Juho Teperi
e204d4ff1b Release 0.7.0-alpha2 2023-05-04 15:20:31 +03:00
Joel Kaasinen
253f379fd0 doc: use examples/ring-{malli,spec}-swagger in doc/ring/openapi.md 2023-05-03 17:17:25 +03:00
Joel Kaasinen
bafc9b757f doc: remove examples/ring-swagger
... it's the same as ring-spec-swagger. Let's keep the pair
ring-spec-swagger and ring-malli-swagger.
2023-05-03 17:17:22 +03:00
Joel Kaasinen
bcbdd05a6f
Merge pull request #617 from metosin/openapi-docs
doc: mention reitit-openapi in cljdoc
2023-05-03 17:12:47 +03:00
Joel Kaasinen
8db7598141 doc: mention reitit-openapi in cljdoc 2023-05-03 16:40:49 +03:00
Tommi Reiman
3336880b01 0.7.0-alpha1 2023-05-03 10:25:01 +03:00
Joel Kaasinen
be0d066f5d doc: document OpenAPI3 multiple examples 2023-04-19 11:03:15 +03:00
Juho Teperi
dad8f530a6 Add example and update docs 2023-03-24 11:32:22 +02:00
Joel Kaasinen
9a99ed96b2 doc: link to examples/ring-malli-swagger from doc/ring/openapi.md 2023-03-16 10:19:30 +02:00
Joel Kaasinen
bf8d0ba1ef doc: don't say :multipart only works with spec 2023-03-16 10:18:28 +02:00
Joel Kaasinen
83b747c7c6 doc: mention :multipart in doc/ring/coercion.md 2023-03-16 09:39:34 +02:00
Joel Kaasinen
0c82ce0e4d
Merge pull request #588 from metosin/openapi
Initial Openapi3 support
2023-03-15 09:34:16 +02:00
Joel Kaasinen
7defd98808 doc: Swagger-UI 5.0.0-alpha.0 has OpenAPI 3.1 support
mention in docs, use in http-swagger example
2023-03-10 14:34:05 +02:00
Joel Kaasinen
304b77cb7d doc: mention lack of swagger-ui support for openapi 3.1 2023-03-10 13:53:10 +02:00
Joel Kaasinen
3fa50ea0f6 doc: mark openapi support as alpha 2023-03-10 10:17:42 +02:00
Joel Kaasinen
8df8bf06cc doc: initial docs for openapi support & per-content-type coercion 2023-03-08 11:23:18 +02:00
dgb23
11534551da
Update composing_routers.md
I wondered how one would wrap a ring handler that can be recreated at runtime without restarting the server. @ikitommi suggested to use the recently added `reloading-ring-handler` as a starting point.

I propose a small example here that illustrates the pattern.
2023-03-07 00:13:15 +01:00
Tommi Reiman
ae138c6dec updated release guide 2023-02-21 15:54:52 +02:00
Tommi Reiman
47f1ee0c84 0.6.0 2023-02-21 15:17:00 +02:00
bplubell
e175dc76c9 Fix incorrect ring-router doc references
It looks like documentation references to `ring-router` are left-overs
from early README examples - I couldn't find any code that ever used the
name. The Ring router named `reitit.ring/router`.

While it didn't take too long for me to realize why my `ring-router` was
not working, I had to look the examples to figure out the name of the
function was just `router` - which was confusing since the section
header stated `reitit-router`.
2023-01-31 15:51:31 -08:00
Tommi Reiman
98a4d9b447 :meta-merge-fn -> :meta-merge 2023-01-21 10:56:42 +02:00
Tommi Reiman
42e988e518
Merge branch 'master' into support-operationid 2023-01-09 17:27:00 +02:00
Paulo Feodrippe
fc73d02e01 add :meta-merge-fn option 2022-08-11 07:55:15 -04:00
Tommi Reiman
3dff4c84aa 0.5.18 2022-04-05 21:38:04 +03:00
Zachary Teo
053ac5b961 Balance parenthesis in docs 2022-03-30 21:36:05 +08:00
Tommi Reiman
f0405adc02 0.5.17 2022-03-10 20:15:43 +02:00
Tommi Reiman
382661a6c4 0.5.16 2022-02-15 16:55:08 +02:00
Tommi Reiman
d0f7126491 add support for malli-lite 2022-02-14 16:45:14 +02:00
Tommi Reiman
060e593414 dev guide 2022-02-12 22:42:10 +02:00
Michael Salihi
673f6dec72
Replace with when-let since no else branches 2021-12-09 10:48:59 +01:00
Juho Teperi
f537be56b7
Merge pull request #510 from devurandom/patch-1
Link to #134 from parameters-middleware refactoring note
2021-11-03 12:19:15 +02:00
zengxinhui
59f4bf285a duplicate r/routes output
Perhaps this is not needed as the same output is shown above close.
Or the `nil`s need to be removed to match actual output. See PR513 https://github.com/metosin/reitit/pull/513
2021-11-03 12:17:30 +02:00
Juho Teperi
143bf06290
Merge pull request #515 from zengxinhui/patch-1
update r/routes output
2021-11-03 12:14:59 +02:00
Michael Salihi
6c835e6e09
Replace if-let by when-let since no else branches
for the recursive match by path example.
2021-10-13 18:50:20 +02:00
zengxinhui
f3a686026f
update r/routes output
`nil` should not be there.
2021-10-13 02:54:40 -04:00
zengxinhui
04225b0eff
update r/routes output
The `nil`s are not there and need to be removed.
2021-10-13 02:41:07 -04:00
mike
1737e19214
Fix typo in Swagger doc 2021-10-05 12:51:21 -05:00