Fork me on GitHub
#announcements
<
2021-02-11
>
val_waeselynck13:02:21

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)

19
đź‘Ť 2
❤️ 6
hyper-clap 1
oliy14:02:00

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

🎉 25
🚀 11
timo13:02:20

Awesome project! Can I read a openapi.yaml as well? Or should I myself transform from yaml to json?

oliy15:02:49

hi @U4GEXTNGZ 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

oliy15:02:13

this only happens at bootstrap time so performance shouldn't really be an issue

timo15:02:34

Thanks @U076R6N1L

đź‘Ť 1