diff --git a/examples/openapi/project.clj b/examples/openapi/project.clj index d76608fe..84112524 100644 --- a/examples/openapi/project.clj +++ b/examples/openapi/project.clj @@ -4,6 +4,7 @@ [metosin/jsonista "0.3.8"] [ring/ring-jetty-adapter "1.12.1"] [metosin/reitit "0.10.0"] - [metosin/ring-swagger-ui "5.9.0"]] + [metosin/ring-swagger-ui "5.9.0"] + [org.slf4j/slf4j-simple "2.0.9"]] :repl-options {:init-ns example.server} :profiles {:dev {:dependencies [[ring/ring-mock "0.4.0"]]}}) diff --git a/examples/openapi/src/example/server.clj b/examples/openapi/src/example/server.clj index db2f367a..65f29c66 100644 --- a/examples/openapi/src/example/server.clj +++ b/examples/openapi/src/example/server.clj @@ -156,22 +156,22 @@ [:regex [:re "[0-9]+"]] [:enum [:enum 1 3 5 42]] [:multi [:multi {:dispatch :type} - [:literal [:map - [:type [:= :literal]] + ["literal" [:map + [:type [:= "literal"]] [:value [:or :int :string]]]] - [:reference [:map - [:type [:= :reference]] + ["reference" [:map + [:type [:= "reference"]] [:description :string] [:ref :uuid]]]]]] :example {:vector-of-tuples [["a" 1] ["b" 2]] :regex "01234" :enum 5 - :multi {:type :literal + :multi {:type "literal" :value "x"}}}}} - :responses {200 {:content {:default {:schema [:map]}}}} + :responses {200 {:content {:default {:schema [:map-of :keyword :any]}}}} :handler (fn [request] {:status 200 - :body (:body request)})}}] + :body (get-in request [:parameters :request])})}}] ["/secure" {:tags #{"secure"}