File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
modules/reitit-malli/src/reitit/coercion Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 126126 ; ; For :parameters we need to output an object schema with actual :properties.
127127 ; ; The caller will iterate through the properties and add them individually to the openapi doc.
128128 ; ; Thus, we deref to get the actual [:map ..] instead of some ref-schema.
129- (json-schema/transform (m/deref model) (merge opts options))
129+ (let [should-be-map (m/deref model)]
130+ (when-not (= :map (m/type should-be-map))
131+ (println " WARNING: Unsupported schema for OpenAPI (expected :map schema)" (select-keys options [:in :parameter ]) should-be-map))
132+ (json-schema/transform should-be-map (merge opts options)))
130133 (json-schema/transform model (merge opts options)))
131134 (throw
132135 (ex-info
You can’t perform that action at this time.
0 commit comments