Joel Kaasinen
8c87fef7b6
feat: warning when swagger encounters per-content-type coercions
2023-03-10 08:52:45 +02:00
Joel Kaasinen
ae55b6628c
doc: update docstring of openapi-feature
2023-03-09 10:21:46 +02:00
Tommi Reiman
2a789557f2
Merge pull request #590 from dgb23/patch-1
...
Update composing_routers.md
2023-03-09 08:40:53 +02:00
Joel Kaasinen
50c1af9a5b
feat: route data validation for per-content-type coercions
2023-03-08 14:39:52 +02:00
Joel Kaasinen
9ae3cd0824
fix: reitit.openapi route data validation
...
:kind set? would've worked, but there's no need to insist a set
also, turn on route data validation in openapi_test.clj
2023-03-08 14:39:52 +02:00
Joel Kaasinen
8df8bf06cc
doc: initial docs for openapi support & per-content-type coercion
2023-03-08 11:23:18 +02:00
Joel Kaasinen
52b7402575
doc: openapi in examples/http-swagger
2023-03-08 11:22:02 +02:00
Joel Kaasinen
2cc6e33654
test: openapi operationId, tags and deprecated
2023-03-08 10:55:23 +02:00
Joel Kaasinen
16145dbdce
test: validate generated openapi specs in all tests
2023-03-07 09:13:38 +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
Wes Morgan
4f31304a1a
Lift definitions to root of swagger.json
...
...so that all of the absolute $ref's to them will resolve
2023-03-06 12:16:48 -07:00
Wes Morgan
229171c7e3
Move more of swagger gen into malli lib
...
...so we can fix #558 .
2023-03-06 12:15:20 -07:00
Joel Kaasinen
8e099febdd
test: validate generated openapi spec
2023-03-06 16:10:48 +02:00
Joel Kaasinen
2596f25411
chore: openapi-schema-validator dev dependency
2023-03-06 16:10:48 +02:00
Joel Kaasinen
df0d4c4935
chore: upgrade node
2023-03-06 16:10:48 +02:00
Joel Kaasinen
4c990fb44f
feat: openapi default request/response schemas
...
use a default schema from :request/:response :body for all specified
:content-types
2023-03-06 10:58:03 +02:00
Joel Kaasinen
c3a3ca9f95
feat: change syntax for :request parameter coercion default schema
...
use :request :body instead of :request :content :default for symmetry
with :response
2023-03-06 10:54:24 +02:00
Joel Kaasinen
7842160656
Merge remote-tracking branch 'origin/master' into openapi
2023-03-03 14:43:23 +02:00
Joel Kaasinen
2d60702769
fix: per-content-type openapi w/ spec
2023-03-03 14:15:31 +02:00
Joel Kaasinen
b149c8c5af
test: rework openapi3 tests
...
- DRY out all-parameter-types-test and per-content-type-test
- Remove redundant assertions
- Run same test for malli/schema/spec
- Clean up commented-out code etc.
2023-03-03 14:15:31 +02:00
Joel Kaasinen
c8d679c6b3
feat: per-content-type request/response coercions
...
implemented on the reitit-core level so individual coercions don't
need changes
syntax:
{:parameters {:request {:content {"application/edn" [:map ...]}}}
:responses {200 {:content {"application/edn" [:map ...]}}}}
2023-03-03 14:15:31 +02:00
Joel Kaasinen
8f48cdc96c
test: enable openapi spec tests
2023-03-03 14:15:22 +02:00
kimmoahola
aec611f8b7
Fix date of version 0.6.0
2023-02-22 13:11:46 +02: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
Ilmo Raunio
310dcd0e99
Merge pull request #581 from metosin/add-support-for-fragment-parameters-2
...
Add reitit-frontend support for fragment string
2023-02-21 15:05:25 +02:00
Ilmo Raunio
e490f5df05
Merge pull request #584 from metosin/reloading-ring-handler
...
reloading-ring-handler
2023-02-21 14:42:33 +02:00
Juho Teperi
2494f702d9
Read fragment string without decoding
...
Users can use Malli decoding to control decoding per schema.
2023-02-16 13:13:48 +02:00
Juho Teperi
83c31e35bc
Revert "Revert "Merge pull request #554 from just-sultanov/add-support-for-fragment-parameters""
...
This reverts commit 4d1b00edfa .
2023-02-16 11:53:27 +02:00
Joel Kaasinen
f03134e215
fix: malli openapi tests
...
malli.json-schema now outputs `:additionalProperties false`
2023-02-15 16:07:23 +02:00
Tommi Reiman
b6c046318b
Merge pull request #586 from bplubell/fix-ring-router-docs
...
Fix incorrect ring-router doc references
2023-02-01 17:30:42 +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
d1bb44a88f
Merge branch 'master' into reloading-ring-handler
2023-01-22 14:30:06 +02:00
Tommi Reiman
0648296315
Merge branch 'master' into feature/openapi
2023-01-22 14:29:22 +02:00
Tommi Reiman
e5bd123740
Merge pull request #579 from metosin/mm
...
2023 Cleanup Branch
2023-01-22 14:26:07 +02:00
Tommi Reiman
744326d6af
(c)
2023-01-22 14:24:30 +02:00
Tommi Reiman
24b2808886
update malli
2023-01-22 14:23:51 +02:00
Tommi Reiman
3fd20f2294
reloading-ring-handler
2023-01-22 14:15:08 +02:00
Tommi Reiman
e75c833fe1
CHANGELOG
2023-01-22 14:07:38 +02:00
Tommi Reiman
358c447698
Update to latest malli
2023-01-21 10:58:55 +02:00
Tommi Reiman
d0a9fd196b
(c) year
2023-01-21 10:58:55 +02:00
Tommi Reiman
8e1e7e62ca
fix spec tests + format
2023-01-21 10:58:53 +02:00
Tommi Reiman
1247e7ff25
CL
2023-01-21 10:56:42 +02:00
Tommi Reiman
6a396d1315
CL
2023-01-21 10:56:42 +02:00
Tommi Reiman
a290b22679
CHANGELOG
2023-01-21 10:56:42 +02:00
Tommi Reiman
034dc9cfbd
CHANGELOG
2023-01-21 10:56:42 +02:00
Tommi Reiman
d1e02fd0a1
Update dependencies
2023-01-21 10:56:42 +02:00
Tommi Reiman
f27c2fc2aa
clean
2023-01-21 10:56:42 +02:00
Tommi Reiman
98a4d9b447
:meta-merge-fn -> :meta-merge
2023-01-21 10:56:42 +02:00
Tommi Reiman
3ec5acc7a1
Merge pull request #582 from ilmoraunio/issue-565
...
Include query-string as part of location header in redirect-trailing-slash-handler
2023-01-21 10:51:20 +02:00