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
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
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
Juho Teperi
a032abc910
Fix interceptors deps
2023-06-12 18:15:53 +03:00
Juho Teperi
cf5906030a
Reitit-dev fixes
2023-06-12 17:57:51 +03:00
Juho Teperi
ac410507f2
Fix reitit-dev deps
2023-06-12 17:50:10 +03:00
Tommi Reiman
b1404ada6d
top-level :request coercion & stuff
2023-05-28 16:49:08 +03:00
Tommi Reiman
93a4246682
allow default
2023-05-28 12:07:01 +03:00
Tommi Reiman
d17c97780e
wrap :content schemas in :schema
2023-05-27 19:01:17 +03:00
Tommi Reiman
3e6c3f589f
review comments
2023-05-22 20:23:47 +03:00
Tommi Reiman
9ac713f0e5
doesn't work properly with spec
2023-05-22 09:16:57 +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
3f265888a4
cleanup
2023-05-21 20:16:45 +03:00
Tommi Reiman
550ea6da58
path-update
2023-05-21 20:13:43 +03:00
Tommi Reiman
4d0e40f135
ctrl.* is such test
2023-05-21 18:15:44 +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
b56c15b64c
fix: openapi malli parameter descriptions
...
... should come from the parameter type, not from the parent :map
2023-05-17 08:19:44 +03:00
Juho Teperi
0b6ed62738
Release 0.7.0-alpha3
2023-05-05 12:57:31 +03:00
Juho Teperi
5adc5ffba0
Compile reitit.Trie with Java 1.8 target
2023-05-05 12:56:02 +03:00
Juho Teperi
e1f9cfb286
Fix versions
2023-05-05 11:18:38 +03:00
Juho Teperi
e204d4ff1b
Release 0.7.0-alpha2
2023-05-04 15:20:31 +03:00
Juho Teperi
9f6565f097
Merge pull request #604 from metosin/fix-377-fragment-strings
...
Fix #377 , navigate to routes with fragment string in frontend
2023-05-04 15:12:41 +03:00
Juho Teperi
b9f189b3f7
Fix Html5History missing fragment on initial load
2023-05-04 15:05:27 +03:00
Tommi Reiman
f015b6669a
fi
2023-05-03 15:41:11 +03:00
Tommi Reiman
3336880b01
0.7.0-alpha1
2023-05-03 10:25:01 +03:00
Joel Kaasinen
33f7b1ccd7
chore: upgrade lein-parent plugin
2023-04-13 09:23:08 +03:00
Juho Teperi
56e6dbe8d8
Fix #377 , navigate to routes with fragment string in frontend
2023-03-24 14:42:13 +02:00
Juho Teperi
e2217887e3
Comments about differences to reitit.impl
2023-03-24 13:59:02 +02:00
Juho Teperi
dad8f530a6
Add example and update docs
2023-03-24 11:32:22 +02:00
Juho Teperi
48bbdba8ed
Implement navigate and set-query functions
2023-03-24 11:16:09 +02:00
Juho Teperi
e3e93eaffb
Add some tests
2023-03-23 15:36:48 +02:00
Juho Teperi
dd724f0d0e
Fix #600 : Add frontend function to update query-params for current path
2023-03-23 15:13:27 +02:00
Joel Kaasinen
d8e28e153b
fix: swagger multipart support
...
1. For spec we were including some extra stuff in the parameter
specification:
{:description "",
:in "formData",
:name "file",
:properties {"bytes" {:format "byte", :type "string"},
"content-type" {:type "string"},
"filename" {:type "string"}},
:required ["filename" "content-type" "bytes"],
:type "file"}
2. For malli the :type changed from "file" to "string" because of
openapi changes. Now openapi and swagger both get the right type.
3. Test for swagger multipart support
2023-03-17 14:54:46 +02:00
Joel Kaasinen
b5c9ee274d
feat: generate correct openapi for reitit.ring.malli
2023-03-16 09:57:02 +02:00