Fork me on GitHub
#malli
<
2021-03-17
>
ikitommi06:03:06

@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 :refs.

ikitommi06:03:39

e.g. ::m/walk-refs & walk-schema-refs & ::m/walk-entry-vals.

ikitommi06:03:21

hopefully not too complex, balancing between “you can do anything with this” and “should be easy to do the simple stuff”

ikitommi06:03:37

also, the dot-printer could have a option with schema->schema function to manipulate the schemas before printing?

raymcdermott09:03:04

I will have to consider that once I get it all to work 🙂

raymcdermott17:03:12

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.

raymcdermott17:03:54

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

ikitommi17:03:42

I'll try it out

3
ikitommi18:03:59

oh, no easy way for that. will add something.

😎 3