malli

https://github.com/metosin/malli :malli:
Michael W 2020-12-30T18:56:06.305Z

Is it possible to take a swagger file and generate a malli schema? I see how to convert schema to swagger, but not the reverse in the docs.

ikitommi 2020-12-30T20:23:11.308800Z

@michael819 currently, no. There is a stalled PR of JSON Schema -> malli conversion. I would guess it takes days / weeks to make it complete enough, don't have the time myself for that. But, contributions most welcome.

Michael W 2020-12-30T20:44:18.312900Z

I think it's a chicken and egg problem. Should I create a malli schema for openapi to validate the files, then work from there? Just trying to gauge the amount of work necessary and a general idea of where to start.