Vedang Manerikar
bdadb0fa8d
Update Clojure version of all Swagger Examples to 1.11
...
As of 497da675b9 (committed 1st Sept
2023), `swagger.cljc` uses the `update-vals` function, introduced in
Clojure 1.11.
Due to this, all the example projects fail to run since the
`project.clj` specifies Clojure version 1.10.
This commit updates the Clojure version for such examples, fixing the
problem.
Fixes : #651
2023-09-28 22:03:43 +05:30
Tommi Reiman
90f3708e16
Merge pull request #648 from metosin/fix-groups
...
README.md: fix latest version, cljdoc links
2023-09-11 17:01:17 +03:00
Joel Kaasinen
67a6658754
doc: fix lates version in README.md
2023-09-11 15:26:24 +03:00
Joel Kaasinen
c1a82ad8ab
doc: fix group name in cljdoc links in README.md
2023-09-11 15:24:41 +03:00
Tommi Reiman
6a39dcd6ec
0.7.0-alpha6
2023-09-11 15:03:31 +03:00
Tommi Reiman
2778775565
Merge pull request #647 from metosin/change-groups
...
move all libs metosin/reitit => fi.metosin/reitit
2023-09-11 14:58:51 +03:00
Joel Kaasinen
8a22696a37
doc: update cljdoc badge with new group
2023-09-11 11:08:41 +03:00
Joel Kaasinen
f0f19c2dae
doc: mention group change in CHANGELOG
2023-09-11 11:06:18 +03:00
Joel Kaasinen
35264dc130
doc: update all references metosin/reitit => fi.metosin/reitit
2023-09-11 11:04:36 +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
6360fa8ba0
Merge pull request #639 from metosin/fix-openapi-examples
...
fix, test and document openapi named examples
2023-09-11 11:04:16 +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
aee0caa5c8
fix: :content coercion and :tags in examples/http-swagger
2023-09-11 07:48:41 +03:00
Joel Kaasinen
b0b9f8cbee
fix: enable validation in examples/openapi, make it pass
2023-09-11 07:45:25 +03:00
Joel Kaasinen
557c89acdd
fix: enable validatio nin examples/ring-malli-swagger, make it pass
2023-09-11 07:40:36 +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
Tommi Reiman
721cf7f321
Merge pull request #646 from pfeodrippe/patch-1
...
Remove duplicated :operationId
2023-09-08 17:06:25 +03:00
Joel Kaasinen
abd84de68d
doc: update CHANGELOG.md
2023-09-08 15:35:57 +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
f2e6d335f0
Merge pull request #642 from metosin/rework-pr-589
...
Fix malli swagger defs w/ custom registries
2023-09-01 15:45:49 +03:00
Joel Kaasinen
ee462c9981
bump malli dep
2023-09-01 10:56:43 +03:00
Joel Kaasinen
497da675b9
refactor: use update-vals
2023-09-01 10:37:17 +03:00
Joel Kaasinen
df5f75eb89
Merge remote-tracking branch 'origin/master' into rework-pr-589
2023-09-01 10:33:20 +03:00
Joel Kaasinen
aef74c6e6a
Merge pull request #644 from metosin/bump-clojure
...
drop support for clojure 1.10
2023-09-01 10:32:54 +03:00
Joel Kaasinen
68371c2c05
drop support for clojure 1.10
2023-09-01 10:22:50 +03:00
Juho Teperi
cdbfef2d21
Merge pull request #640 from metosin/cljdoc-check-fix
...
Try skipping module without src folder
2023-08-30 09:55:23 +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
5d0bce1242
doc: clarify :content-types in example/openapi
2023-08-28 17:49:23 +03:00
Juho Teperi
0323409cd5
Try skipping module without src folder
2023-08-28 16:00:03 +03:00
Joel Kaasinen
7b41882e6c
doc: remove redundant examples
2023-08-28 15:46:05 +03:00
Joel Kaasinen
38547e4ad2
doc: update openapi & coercion docs
2023-08-28 15:44:16 +03:00
Joel Kaasinen
c6541de1b5
doc: add examples/openapi
2023-08-28 15:41:06 +03:00
Joel Kaasinen
76a08a2322
Merge pull request #637 from metosin/fix-openapi-example
...
don't crash swagger generation on :content, fix examples
2023-08-28 13:49:02 +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
4d1d469686
test: test multiple examples using new syntax
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
7b88125f5e
Merge pull request #638 from metosin/openapi-refactor
...
share openapi generation code between malli, spec & schema
2023-08-28 12:55:43 +03:00
Joel Kaasinen
55854f6652
doc: add openapi response content type to examples/ring-spec-swagger
2023-08-28 11:22:42 +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
7b4127b0f1
fix: examples/http-swagger
...
broken by #628
fixes #634
2023-08-28 10:10:14 +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