malli

https://github.com/metosin/malli :malli:
sudakatux 2020-04-25T23:03:56.412Z

Hi

sudakatux 2020-04-25T23:04:23.412700Z

i have a question regarding the json-schema suport

sudakatux 2020-04-25T23:04:32.413Z

So if i go to the example:

sudakatux 2020-04-25T23:04:37.413300Z

[:map {:title "Address"} [:id string?] [:tags [:set keyword?]] [:address [:map {:json-schema/title "Something"} [:street {:json-schema/title "Something Else"} string?] [:city string?] [:zip int?] [:lonlat [:tuple double? double?]]]]]

sudakatux 2020-04-25T23:09:12.414700Z

and add title to :street that will not work i would expect to see "Something Else" as a title property for street

sudakatux 2020-04-25T23:09:42.415300Z

I do see "Something" as the title for Addess

sudakatux 2020-04-25T23:09:52.415600Z

Generated JSON-schema :

sudakatux 2020-04-25T23:10:29.416Z

{:type "object",
 :properties {:id {:type "string"},
              :tags {:type "array",
                     :items {:type "string"},
                     :uniqueItems true},
              :address {:type "object",
                        :properties {:street {:type "string"},
                                     :city {:type "string"},
                                     :zip {:type "integer",
                                           :format "int64"},
                                     :lonlat {:type "array",
                                              :items [{:type "number"}
                                                      {:type "number"}],
                                              :additionalItems false}},
                        :required [:street :city :zip :lonlat],
                        :title "Something"}},
 :required [:id :tags :address],
 :title "Address"}

sudakatux 2020-04-25T23:11:25.416700Z

Why is not "Something Else" a title for street am i missing something?