@raymcdermott you can walk + update-properties, but if you want to walk also the map-entries (not just map values), you should paramertise the walk to walk those too. same for :ref
s.
I will have to consider that once I get it all to work 🙂
I have read the tests and am struggling to see how they help me to drop the swagger entries. I'm not even sure how to address them .... I know they are the the map in slot 1 of the key :ref
but can see how to access that. None of them seem to show how to manipulate entries. And, I know it's my limitation but going to the schema processing itself is quite complex code to read out in my head.
I was thinking that - since they are only things defined with maps, I could find a way to drop maps like I would do for some type with walk
I'll try it out
oh, no easy way for that. will add something.
thanks @ikitommi
some tests on walking here: https://github.com/metosin/malli/blob/master/test/malli/util_test.cljc#L672-L795
e.g. ::m/walk-refs
& walk-schema-refs
& ::m/walk-entry-vals
.
hopefully not too complex, balancing between “you can do anything with this” and “should be easy to do the simple stuff”
also, the dot-printer could have a option with schema->schema function to manipulate the schemas before printing?