https://clojureverse.org/t/building-a-community-for-sustainability-oriented-clojure-work/7159 Follow-up on ClojureVerse, Reddit, or in #community-development (I suppose that's the right channel for this, and that it's OK to publish this here, as it's arguably a kind of project)
Hi everyone, I've just released martian 0.1.15 Martian is an HTTP abstraction library for Clojure/script providing url construction, request/response coercion and validation and more via an extensible interceptor pattern based on Swagger/OpenAPI schemas or routes described as data https://github.com/oliyh/martian This release adds support for: • Development mode - a martian instance can now be a function or a var that resolves the martian instance, giving a better REPL workflow https://github.com/oliyh/martian/issues/101 • Inline object definitions https://github.com/oliyh/martian/issues/100 and required field arrays on objects https://github.com/oliyh/martian/issues/102 (thanks https://github.com/evilsneer for reporting) • An optional response validator which validates responses against the response schema This release improves: • Initialisation of martian.re-frame instances to avoid race conditions https://github.com/oliyh/martian/issues/95 • Documentation of martian.cljs-http initialisation
Awesome project! Can I read a openapi.yaml as well? Or should I myself transform from yaml to json?
hi @timok thanks! no, it can't read yaml, so you either need to transform to json (hopefully 3rd party libs out there which will do it for you) or else directly into martian's internal clojure representation, but then you will probably duplicate quite a lot of the work that martian does for interpreting swagger.json
this only happens at bootstrap time so performance shouldn't really be an issue
Thanks @oliy