Commit graph

744 commits

Author SHA1 Message Date
Juho Teperi
5ca22193d0 Use defined :string :default transformer for query-string-coercer 2025-01-31 09:39:19 +02:00
Juho Teperi
4eb29d3ed9 Extend frontend docs 2025-01-28 15:46:37 +02:00
Juho Teperi
dfc5a4ef67 Remove todo comments 2025-01-28 15:12:46 +02:00
Juho Teperi
7e9116f77e Simplify Malli coercion for query-params to only encode 2025-01-28 15:09:31 +02:00
Juho Teperi
7ae118fbb5 Move query string coercion to coercion ns from core 2025-01-28 14:34:21 +02:00
Juho Teperi
ce6d9e26cd Update docstrings and changelog 2025-01-22 14:35:56 +02:00
Juho Teperi
1b37c87aa2 Test set-query without a match 2025-01-22 14:18:54 +02:00
Juho Teperi
1ba77a7267 Apply query parameters encoding on rfe/set-query 2025-01-22 14:05:45 +02:00
Juho Teperi
21e5840f13 Ensure extra query-string params aren't removed by coercion 2025-01-22 14:05:45 +02:00
Juho Teperi
dba8d159cc . 2025-01-22 14:05:26 +02:00
Juho Teperi
5829e1c656 Add reitit.frontend test case 2025-01-22 14:05:26 +02:00
Juho Teperi
1819fa5d75 Note 2025-01-22 14:05:26 +02:00
Juho Teperi
25dd0abcaf Use coercion to encode query-string values in match->path 2025-01-22 14:05:26 +02:00
Juho Teperi
bf82533028 Handle shadow-cljs infern warnings 2025-01-22 12:01:10 +02:00
Eugene Pakhomov
cc1cd114e4 Make exception middleware return proper Ring responses 2024-12-07 23:47:05 +02:00
Joel Kaasinen
0f9414847a
Merge pull request #706 from metosin/openapi-query-warning-master
feat: add warning for unsupported openapi parameter schemas
2024-11-07 10:01:00 +02:00
Joel Kaasinen
c89b6bbe31 feat: add warning for unsupported openapi parameter schemas
for #705
2024-10-30 09:58:32 +02:00
Markus Penttilä
702e7b8972 Add OpenAPI :requestBody for :form request schema
OpenAPI Specification 3 requires defining form parameters, i.e. classic
application/x-www-form-urlencoded type body as a :requestBody. They are
not supported as regular parameters like in OAS 2.
2024-10-09 22:28:57 -04:00
Tommi Reiman
d11deb3473
Merge pull request #701 from bsless/fix-interface-maps
Add dispatch for every implementation of IPersistentMap
2024-09-30 20:03:41 +01:00
Joel Kaasinen
e2c63d6579
Merge pull request #697 from dekelpilli/master
fix: fix bug where http ring handler would cause :path to be applied twice
2024-09-25 10:45:02 +03:00
Joel Kaasinen
610586f0d3 fix: OpenAPI :description belongs at Response level, not Media Type
also, support singular :example in addition to :examples
2024-09-16 12:46:57 +03:00
Ben Sless
c96b22bc5f Add dispatch for every implementation of IPersistentMap
Closes #700
2024-09-13 20:25:51 +03:00
Dekel Pilli
f1ec7bbe8e
fix: fix bug where http ring handler would cause :path to be applied twice 2024-09-02 15:40:00 +10:00
Tommi Reiman
d926ef7591 0.7.2 2024-08-30 18:05:18 +03:00
Tommi Reiman
8b0c8a3c18
Merge pull request #696 from metosin/post-693
Followup 693
2024-08-27 14:16:04 +03:00
Tommi Reiman
bffe360c6d
Merge pull request #506 from bsless/faster-keywordize
Faster keywordize
2024-08-27 14:11:48 +03:00
Tommi Reiman
734fca7d4a
Merge pull request #694 from whamtet/master
bugfix
2024-08-27 14:08:56 +03:00
Tommi Reiman
5a2ae56991 simplify 2024-08-27 14:06:15 +03:00
Tommi Reiman
d8a8bce272 move out of public api 2024-08-27 14:06:09 +03:00
Matthew Molloy
c94ecf5ca7 bugfix 2024-08-26 09:00:30 +09:00
Ben Sless
4eab67a8db reduce-kv over treemap 2024-08-25 19:25:54 +03:00
Ben Sless
7dfc0e5fca Fix dynamism 2024-08-25 19:19:26 +03:00
Ben Sless
61783e4c81 Statically def transducer
Eliminates allocation and friendlier to JIT
2024-08-25 18:56:30 +03:00
Ben Sless
59642e51f1 Decrease code size and eliminate an allocation 2024-08-25 18:54:55 +03:00
Ben Sless
dcb7258caf Tailor keywordize implementation to concrete types
Even faster
2024-08-25 18:50:43 +03:00
Ben Sless
7ab6021630 Add faster keywordize-keys implementation for clj 2024-08-25 18:25:54 +03:00
Ben Sless
c48b6a3704 Speed up routes code path
Fixes #692
2024-08-25 16:20:49 +03:00
Ben Sless
a0467d52cd Inline call to routes 2024-08-25 16:20:15 +03:00
Tommi Reiman
5589328a3c 0.7.1 2024-06-30 18:58:46 +03:00
Tommi Reiman
e8c3035254 . 2024-06-30 18:31:14 +03:00
Tommi Reiman
aec024a943 fix 2024-06-30 18:29:52 +03:00
Tommi Reiman
49e8d887da fixes #679 2024-06-30 17:55:47 +03:00
Tommi Reiman
ee67a746d4 reduce-kv 2024-06-30 17:55:23 +03:00
Tommi Reiman
2da94f733d don't merge records 2024-06-29 16:21:28 +03:00
Peter Strömberg
2f3fc21c84 Add arities 1 and 2 to rf/match->path
To adhere to the docstring's info about parameter 2 and 3 being optional
2024-06-21 09:59:33 +02:00
Tommi Reiman
877c45af90 bump up version 2024-04-30 11:51:18 +03:00
Tommi Reiman
2be0dbbb2a 0.7.0-alpha8 2024-04-30 11:12:39 +03:00
Joel Kaasinen
037763561e fix: location of openapi :requestBody :description
:description should be under :requestBody, not under :content. Thanks
to openapi-schema-validator for noticing this.

Also fix examples in openapi-malli-tests to make the resulting schema
valid.
2024-04-22 08:31:51 +03:00
Joel Kaasinen
337d94823a feat: support ref schemas in openapi parameters
e.g. {:parameters {:query #'MyVar}}
2024-04-22 08:00:27 +03:00
Joel Kaasinen
288b701d4e feat: openapi #/components/schemas
collect definitions when traversing the models, and put them in the
right place for openapi

depends on :malli.json-schema/definitions-path support
2024-04-22 08:00:27 +03:00