Joel Kaasinen
c684c83c99
chore: update openapi-schema-validator, fix test
...
validator now disallows having both "example" and "examples"
2025-10-24 15:38:29 +03:00
Joel Kaasinen
2bf8aa98a7
test: malli now uses . instead of ~1 in json-schema/swagger $refs
...
update our assertions accordingly
2025-05-12 14:28:19 +03:00
Joel Kaasinen
7a77c9f86b
Merge pull request #735 from metosin/response-default
...
Resurrect :responses :default
2025-04-29 09:30:02 +03:00
Joel Kaasinen
9797725ae8
Merge pull request #714 from mokshasoft/openapi3-parameter-deprecation
...
Place the openapi deprecation tag directly under parameters
2025-04-25 15:13:26 +03:00
Joel Kaasinen
9534f6df8b
feat: avoid duplicated :description for openapi parameters
2025-04-25 15:04:51 +03:00
Joel Kaasinen
a390180975
test: add description and deprecated to openapi-test
2025-04-25 15:03:40 +03:00
Joel Kaasinen
dd835e73a8
feat: allow :default response status code again
...
it is an old feature, but didn't have a test, so it was broken by #715
also add a test so we don't break it again
2025-04-11 10:30:52 +03:00
Loukas Agorgianitis
3342e77538
Change default index-redirect? value to false
...
Signed-off-by: Loukas Agorgianitis <loukas@agorgianitis.com>
2025-03-28 15:14:15 +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
Joel Kaasinen
3296323059
test: use string refs in openapi-malli-tests
...
... in order to pass the validator, which disallows "/"
2024-04-22 08:31:51 +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
57fc00a45e
test: tests for openapi + malli refs/vars
2024-04-22 08:00:27 +03:00
Joel Kaasinen
ce52b26329
test: actually assert something in openapi-malli-tests
...
(is (= x) y) strikes again
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
Martín Varela
ed280f9a33
feature: fetch openapi content types from muuntaja
...
(level 1 integration in #636 )
2024-02-09 11:49:44 +02:00
Joel Kaasinen
7352358662
feat: rename openapi :content-types keyword, split for req & resp
2023-09-08 15:17:35 +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
6f111bce2e
refactor: share -get-apidocs-openapi between malli, spec & schema
2023-08-28 09:24:10 +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
b1404ada6d
top-level :request coercion & stuff
2023-05-28 16:49:08 +03:00
Tommi Reiman
1b5287724e
format
2023-05-27 19:02:10 +03:00
Tommi Reiman
d17c97780e
wrap :content schemas in :schema
2023-05-27 19:01:17 +03:00
Tommi Reiman
3f265888a4
cleanup
2023-05-21 20:16:45 +03:00
Joel Kaasinen
1983a4bb64
test: openapi parameter descriptions via schema
2023-05-17 16:06:45 +03:00
Joel Kaasinen
c443adbfca
test: openapi parameter descriptions via spec
2023-05-17 08:25:44 +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
Joel Kaasinen
2e8e9265d9
test: document current openapi3 description behaviour
...
malli works weirdly, others don't
2023-05-17 08:19:26 +03:00
Joel Kaasinen
ca9852a318
test: multiple named openapi examples
2023-04-19 10:49:23 +03:00
Joel Kaasinen
75ebeaf6cd
test: test openapi examples support for malli, schema, spec
2023-04-18 15:04:14 +03:00
Joel Kaasinen
1a73ba952e
test: openapi3 + malli + mutually recursive schemas
2023-04-17 08:45:24 +03:00
Joel Kaasinen
b5c9ee274d
feat: generate correct openapi for reitit.ring.malli
2023-03-16 09:57:02 +02:00
Joel Kaasinen
de2d810b7c
test: multiple parts in multipart-test
2023-03-15 17:48:03 +02:00
Joel Kaasinen
acbcec1ed9
feat: openapi3 multipart support for schema
2023-03-15 17:48:03 +02:00
Joel Kaasinen
1c65f533cf
feat: openapi3 multipart support for malli
2023-03-15 17:48:03 +02:00
Joel Kaasinen
f322597c04
feat: openapi3 multipart support for spec
2023-03-15 17:48:03 +02:00
Joel Kaasinen
d0ff64df57
test: simplify openapi_test.clj a bit more
2023-03-15 16:01:57 +02:00
Joel Kaasinen
66e7c9e1c8
test: nicer handling of missing :additionalProperties for spec
2023-03-15 13:19:01 +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
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
Joel Kaasinen
8e099febdd
test: validate generated openapi spec
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
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
8f48cdc96c
test: enable openapi spec tests
2023-03-03 14:15:22 +02:00
Joel Kaasinen
f03134e215
fix: malli openapi tests
...
malli.json-schema now outputs `:additionalProperties false`
2023-02-15 16:07:23 +02:00
Enzzo Cavallo
c576b47634
OpenAPI V3 Support
2022-09-05 03:21:53 -03:00