Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make schema backend pluggable too #124

Open
spieden opened this issue Dec 14, 2021 · 1 comment
Open

Make schema backend pluggable too #124

spieden opened this issue Dec 14, 2021 · 1 comment

Comments

@spieden
Copy link

spieden commented Dec 14, 2021

Hello,

What about making the schema backend pluggable just like the HTTP client one? Would be nice to support Clojure spec and malli, for example:

https://github.com/metosin/malli

@oliyh
Copy link
Owner

oliyh commented Dec 14, 2021

Hello,

I did actually start a branch to support clojure.spec, which is here: https://github.com/oliyh/martian/tree/clojure-spec

I got most of the way there, but it was quite complicated. I was going more down the path of supporting both spec and schema at the same time, rather than making them pluggable, but pluggable is probably a better way to go.

The hardest part was turning a swagger document into the schema, but I expect Malli to have much better support for that than clojure.spec so it might be easier.

PRs welcome, as always :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants