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
Joel Kaasinen
f41d555b62
Merge pull request #671 from metosin/fix-example
...
fix: remove unsupported coercions when generating swagger
2024-04-19 10:32:25 +03:00
Joel Kaasinen
b6c5b69ffe
Merge pull request #659 from frenchy64/escaped-double-quote-doc
...
Fix formatting of #'router docstring
2024-04-19 10:18:32 +03:00
Joel Kaasinen
01b476b342
fix: remove unsupported coercions when generating swagger
...
If we don't remove them, :responses :content gets passed out verbatim
in the swagger.json, breaking stuff.
In particular, fixes the swagger.json in
examples/reitit-malli-swagger. Reported broken in #669 .
2024-04-19 10:16:13 +03:00
Joel Kaasinen
c67a748915
Merge pull request #585 from djblue/var-handler
...
Allow var handlers
2024-03-15 10:35:22 +02:00
Joel Kaasinen
5d30a73bad
feat: reitit.core/Expand for Vars
2024-03-15 09:21:51 +02:00
Martín Varela
0e8d635e44
fix: added muuntaja dependency for the openapi module
2024-02-09 12:14:35 +02:00
Martín Varela
cb1c5e8748
made openapi clj, not cljc
2024-02-09 12:12:58 +02:00
Martín Varela
ed280f9a33
feature: fetch openapi content types from muuntaja
...
(level 1 integration in #636 )
2024-02-09 11:49:44 +02:00
Martín Varela
f1e6d37dcf
fix: don't output :default in openapi request body
2024-02-09 11:49:44 +02:00
Ambrose Bonnaire-Sergeant
5444bad439
Fix formatting of #'router docstring
...
Escaped double quotes breaks the clojure.repl/doc output.
2024-01-12 13:50:18 -06:00
Stig Brautaset
0fff06ec6b
Correct "effects" to "affects" in comments & docs
...
Their usage is commonly confused, but "affect" is usually a verb and
"effect" is usually a noun. In this case we want the verb. See also
https://www.merriam-webster.com/grammar/affect-vs-effect-usage-difference
2023-10-13 21:10:20 +01:00
Juho Teperi
15e0c95cb6
0.7.0-alpha7
2023-10-03 13:34:36 +03:00
Juho Teperi
d4a85c40e6
Revert group id change
...
Per discussions in Slack, changing the group id causes too much problems
2023-10-03 13:06:23 +03:00
Tommi Reiman
6a39dcd6ec
0.7.0-alpha6
2023-09-11 15:03:31 +03:00
Joel Kaasinen
ccc2b5636e
move all libs metosin/reitit => fi.metosin/reitit
...
metosin/ is a clojars legacy group, and new modules like
fi.metosin/openapi can't be created under it. Let's move everything
under fi.metosin
2023-09-11 11:04:36 +03:00
Joel Kaasinen
bad798d90d
feat: allow vectors for openapi/swagger :tags
...
no need to insist on set, and many of our examples use vectors anyway
2023-09-11 07:59:17 +03:00
Joel Kaasinen
b4c0936207
Merge remote-tracking branch 'origin/master' into fix-openapi-examples
2023-09-11 07:53:15 +03:00
Joel Kaasinen
5352fd4f99
fix: swagger & openapi ::tags spec
...
`#{}` isn't a valid :kind predicate
2023-09-11 07:40:13 +03:00
Joel Kaasinen
b206fc79b3
fix: spec for openapi-feature
2023-09-11 07:12:00 +03:00
Joel Kaasinen
7352358662
feat: rename openapi :content-types keyword, split for req & resp
2023-09-08 15:17:35 +03:00
Paulo Rafael Feodrippe
68adf50362
Remove duplicated :operationId
2023-09-07 16:39:39 -04:00
Joel Kaasinen
497da675b9
refactor: use update-vals
2023-09-01 10:37:17 +03:00
Joel Kaasinen
241c8367e3
feat: dissoc definitions from swagger methods
...
we only want the definitions on the very top level of the swagger doc
2023-08-30 09:38:33 +03:00
Joel Kaasinen
b316840ea0
fix: compile instead of -compile-model in malli.cljc
...
-compile-model now takes a vector of models, so
(-compile-model this model nil) fails. Just use compile directly like
master does.
2023-08-30 09:38:33 +03:00
Joel Kaasinen
f1d26791fc
Merge branch 'master' into rework-pr-589
2023-08-30 08:29:06 +03:00
Joel Kaasinen
85ebb343ed
refactor: remove dead code
2023-08-28 13:48:28 +03:00
Joel Kaasinen
d5021e549a
fix: pick up openapi examples from [:responses _ :content :default]
2023-08-28 13:48:23 +03:00
Joel Kaasinen
25aee5ed22
Merge remote-tracking branch 'origin/master' into fix-openapi-example
2023-08-28 13:01:58 +03:00
Joel Kaasinen
e4c75c7354
fix: dissoc unsupported [:responses nnn :content] for swagger
...
otherwise swagger generation crashes when it tries to serialize
something like `{:content {"foo/bar" any?}}`
also fix examples/ring-malli-swagger
2023-08-28 11:18:00 +03:00
Joel Kaasinen
8af89c05cb
refactor: get rid of reitit.coercion/get-apidocs
2023-08-28 10:06:14 +03:00
Joel Kaasinen
233ac19914
refactor: remove dead code
2023-08-28 10:03:07 +03:00
Joel Kaasinen
6f111bce2e
refactor: share -get-apidocs-openapi between malli, spec & schema
2023-08-28 09:24:10 +03:00
Joel Kaasinen
051452231a
refactor: -get-model-apidocs for schema & spec
...
not used yet tho
2023-08-28 09:02:11 +03:00
Joel Kaasinen
f943b025cb
refactor: no need to pass options into -get-apidocs-openapi
2023-08-28 08:59:58 +03:00
Joel Kaasinen
ee298ec362
refactor: Coercion.-get-model-apidocs, use it for malli openapi
2023-08-28 08:42:54 +03:00
Joel Kaasinen
803ed0933a
refactor: parameterise -get-apidocs-openapi with ->schema-object
2023-08-24 11:05:43 +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
05cbed815f
review comment fixes
2023-08-24 08:38:18 +03:00
Tommi Reiman
adef7ad06e
read openapi metadata into openapi description
2023-08-23 16:43:34 +03:00
Tommi Reiman
226ca889b6
openapi content tests
2023-08-18 17:17:56 +03:00
Tommi Reiman
d8e9819e0a
fix responses & request
2023-08-18 16:47:20 +03:00
Juho Teperi
4a182588b4
Release 0.7.0-alpha5
2023-06-14 16:06:20 +03:00