From b206fc79b322042a3436c6a4258ccb1a952eac6e Mon Sep 17 00:00:00 2001 From: Joel Kaasinen Date: Mon, 11 Sep 2023 07:12:00 +0300 Subject: [PATCH] fix: spec for openapi-feature --- modules/reitit-openapi/src/reitit/openapi.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/reitit-openapi/src/reitit/openapi.cljc b/modules/reitit-openapi/src/reitit/openapi.cljc index cf4047b0..b845e889 100644 --- a/modules/reitit-openapi/src/reitit/openapi.cljc +++ b/modules/reitit-openapi/src/reitit/openapi.cljc @@ -12,10 +12,11 @@ (s/def ::tags (s/coll-of (s/or :keyword keyword? :string string?))) (s/def ::summary string?) (s/def ::description string?) -(s/def :openapi/content-types (s/coll-of string?)) +(s/def :openapi/request-content-types (s/coll-of string?)) +(s/def :openapi/response-content-types (s/coll-of string?)) (s/def ::openapi (s/keys :opt-un [::id])) -(s/def ::spec (s/keys :opt-un [::openapi ::no-doc ::tags ::summary ::description] :opt [:openapi/content-types])) +(s/def ::spec (s/keys :opt-un [::openapi ::no-doc ::tags ::summary ::description] :opt [:openapi/request-content-types :openapi/response-content-types])) (def openapi-feature "Stability: alpha