File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 150
150
151
151
(defmethod accept :enum [_ _ children options] (merge (some-> (m/-infer children) (-transform options)) {:enum children}))
152
152
(defmethod accept :maybe [_ _ children _] {:oneOf (conj children {:type " null" })})
153
- (defmethod accept :tuple [_ _ children _] {:type " array" , :items children, :additionalItems false })
153
+ (defmethod accept :tuple [_ _ children _] {:type " array" , :prefixItems children, :items false })
154
154
(defmethod accept :re [_ schema _ options] {:type " string" , :pattern (first (m/children schema options))})
155
155
(defmethod accept :fn [_ _ _ _] {})
156
156
Original file line number Diff line number Diff line change 91
91
[[:enum 'kikka 'kukka] {:type " string" :enum ['kikka 'kukka]}]
92
92
[[:maybe string?] {:oneOf [{:type " string" } {:type " null" }]}]
93
93
[[:tuple string? string?] {:type " array"
94
- :items [{:type " string" } {:type " string" }]
95
- :additionalItems false }]
94
+ :prefixItems [{:type " string" } {:type " string" }]
95
+ :items false }]
96
96
[[:re " ^[a-z]+\\ .[a-z]+$" ] {:type " string" , :pattern " ^[a-z]+\\ .[a-z]+$" }]
97
97
[[:fn {:gen/elements [1 ]} int?] {}]
98
98
[:any {}]
355
355
:required [:id :malli.json-schema-test/location `description],
356
356
:definitions {" malli.json-schema-test/UserId" {:type " string" },
357
357
" malli.json-schema-test/location" {:type " array" ,
358
- :items [{:type " number" } {:type " number" }],
359
- :additionalItems false },
358
+ :prefixItems [{:type " number" } {:type " number" }],
359
+ :items false },
360
360
" malli.json-schema-test/description" {:type " string" },
361
361
" malli.json-schema-test/User" {:type " object" ,
362
362
:properties {:id {:$ref " #/definitions/malli.json-schema-test~1UserId" },
You can’t perform that action at this time.
0 commit comments