announcements

Project/library announcements ONLY - use threaded replies for discussions. Do not cross post here from other channels. Consider #events or #news-and-articles for other announcements.
val_waeselynck 2021-02-11T13:04:21.291900Z

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)

đź‘Ť 1
12
❤️ 4
1
2021-02-11T14:03:00.293500Z

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

🚀 6
🎉 14
timo 2021-02-12T13:18:20.298900Z

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

2021-02-12T15:11:49.299200Z

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

2021-02-12T15:12:13.299400Z

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

timo 2021-02-12T15:12:34.299600Z

Thanks @oliy

đź‘Ť 1