Fork me on GitHub
#malli
<
2020-12-30
>
Michael W18:12:06

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.

ikitommi20:12:11

@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 W20:12:18

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.