mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 11:56:10 +02:00
🐛 Fix openapi json generation for :re schemas
This commit is contained in:
parent
004a9f17d3
commit
1334d733cd
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,8 @@
|
|||
(defmethod visit :enum [_ _ children options] (merge (some-> (m/-infer children) (transform* options)) {:enum children}))
|
||||
(defmethod visit :maybe [_ _ children _] {:oneOf (conj children {:type "null"})})
|
||||
(defmethod visit :tuple [_ _ children _] {:type "array", :items children, :additionalItems false})
|
||||
(defmethod visit :re [_ schema _ options] {:type "string", :pattern (first (m/children schema options))})
|
||||
(defmethod visit :re [_ schema _ options]
|
||||
{:type "string", :pattern (str (first (m/children schema options)))})
|
||||
(defmethod visit :nil [_ _ _ _] {:type "null"})
|
||||
|
||||
(defmethod visit :string [_ schema _ _]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue