martian

The HTTP abstraction library for Clojure/script, supporting OpenAPI, Swagger, Schema, re-frame and more

MIT License

Downloads
544.2K
Stars
514
Committers
29

Bot releases are hidden (Show)

martian - To infinity and beyond Latest Release

Published by oliyh 9 months ago

This release adds:

  • Support for inf in default value for numbers #193 thanks @robertluo

This release improves:

  • Example in readme #185 thanks @LucianoLaratelli
  • Support for references in swagger specs #196 thanks @RafaeLeal
  • Description of the Babashka client in the README #191 thanks @lispyclouds
martian - Superterrestrial

Published by oliyh about 1 year ago

This release adds:

  • The ability to generate urls with their querystrings #171
  • Support for date-time formats #149

This release improves:

  • VCR playback terminates stack when it returns a response #181
martian - I for one welcome our new AI overlords

Published by oliyh over 1 year ago

This release improves:

  • Parsing of numeric values, #178 thanks @latacora-paul

This release fixes:

  • Failing spec instrumentation when content-type is not specified, #179 thanks @wkok
martian - Ba-boom ba-bashka

Published by oliyh over 1 year ago

This release adds support for:

  • Babashka! #165 thanks @borkdude
  • explore return value now indicates deprecated endpoints #164 thanks @wkok
  • Support for local file definitions #174 #175

This release improves:

  • Upgrade clj-http-lite implementation #170
  • Remove old notice from README #173 thanks @The-Alchemist
martian - Additional loud noises

Published by oliyh almost 2 years ago

This release adds support for:

  • date-time and int-or-string string formats #155, thanks @jcdlbs
  • Objects with no properties (implicitly anything) and associated additionalProperties support #156, thanks @jcdlbs
  • hato client in martian-test #158, thanks @bombaywalla
  • cljs-http-promise in martian-test #159

This release fixes:

  • The cljs-http stub responder in martian-test now returns a proper asynchronous contex #159

This release improves:

  • The martian-test code example in the README #152, thanks @rkirchofer
  • The respond-with (replacing respond-with-constant) function in martian-test now accepts functions as well as values #159
martian - Sche-ma Sunday

Published by oliyh over 2 years ago

This release adds support for:

  • OpenAPI server URLs directive #129, thanks @bombaywalla
  • OpenAPI yaml definitions #132, thanks @bombaywalla

This release fixes:

  • Incorrect errors of disallowed keys for OpenAPI bootstrapped instances #126
  • The internal martian spec of an input schema to allow optional keys #138, thanks @chopptimus
  • OpenAPI parameters defined in a $ref #112, #142
  • Nested objects with optional keys in Swagger bootstrapped instances #111
  • Interpretation of the number leaf schema #146, thanks @bombaywalla
  • Interpretation of untyped schemas that have properties as objects #148, thanks @bombaywalla

This release improves:

  • The main readme and the VCR readme, thanks @rgkirch
martian - Promising

Published by oliyh over 2 years ago

This release adds support for:

  • martian-cljs-http-promise - support for the cljs-http-promise http client for cljs
  • Specifying options for the Swagger GET request when bootstrapping, #123 thanks @AndreaCrotti

This release fixes:

  • Bump cheshire and fix jackson CVE-2020-28491, #127 thanks @RickMoynihan
martian - Curiosity

Published by oliyh about 3 years ago

This release improves:

  • Errors thrown using the hato client are now handled by the interceptor chain

This release changes:

  • An exception is now thrown if the route name is not found when calling an endpoint function #120 - thanks @AndreaCrotti
  • The hato dependency is updated to 0.8.2
martian - The cato in the hato

Published by oliyh about 3 years ago

This release adds support for:

  • martian-hato - support for the Hato http client for JVM 11+

This release improves:

  • Application of defaults #108

This release fixes:

  • Parameter aliases being confused between body, query, path etc #109

This release changes:

  • The clojars group - this and future releases are now under com.github.oliyh, see README for details
martian - De-fault

Published by oliyh over 3 years ago

This release adds support for:

  • Keyword -> string coercion #105
  • Document and optionally merge default values #18

This release improves:

  • Behaviour parsing OpenAPI v3 schemas when encountering an unexpected schema #103
martian -

Published by oliyh over 3 years ago

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 #101
  • Inline object definitions #100 and required field arrays on objects #102 (thanks @evilsneer for reporting)
  • An optional response validator which validates responses against the response schema #69

This release improves:

  • Initialisation of martian.re-frame instances to avoid race conditions #95
  • Documentation of martian.cljs-http initialisation
martian - Lelu Dallas Multipass

Published by oliyh about 4 years ago

This release adds support for:

  • Multiple instances in martian-re-frame - many thanks to @benedekfazekas #96
    -- Note that the signature of :martian.re-frame/request and the location of the martian instance within the re-frame db has changed, so if you relied on these for tests or other functionality you will need to update your code

This release fixes:

  • OpenAPI parameters - thanks to @enspritz for the report and help #93 #94
  • More robust pending operations in martian-re-frame #93

This release improves:

  • Documentation for martian-re-frame
martian - We Are OpenAPI

Published by oliyh about 4 years ago

This release adds support for:

  • OpenAPI v3 - huge thanks to @czan #90 #51
  • Parameter references - thanks to @kpmg-jp-jnorton #87
martian - Got the city on lockdown

Published by oliyh over 4 years ago

This release adds support for:

  • Path parameters #75 (thanks @RafaeLeal)
  • Route definition spec #78 (turn on spec instrumentation to use it)
  • clj-http-lite module #81 (thanks @deas)

This release improves:

  • Handling of additionalProperties #76 (thanks @RafaeLeal)
  • Handling of open maps #77 (thanks @RafaeLeal)
  • Remove implicit martian-httpkit dependency from martian-test #82 (thanks @davidjameshumphreys)
martian - Free form desire

Published by oliyh almost 5 years ago

This release adds support for:

  • Free form objects (additionalProperties) #70 (thanks @omartell)
  • Recursive schemas #71
  • re-frame on-success and on-failure handlers can be vectors, allowing closing over of local bindings #67
martian - I've got the key, I've got the secret

Published by oliyh over 5 years ago

This release adds support for:

  • Making your own decision about keywordising keys as per #65 (thanks @andrewmcveigh)
  • URI formats for strings #63 (thanks again to @andrewmcveigh)
martian - Keeping up with the Joneses

Published by oliyh almost 6 years ago

This release adds support for:

  • Trimming trailing slashes from base URLs as per #55 (thanks @samuelwagen)

This release fixes:

  • Compilation with the latest Clojurescript (1.10.439)
  • A compilation warning for schema #52 (thanks @samuelwagen)

This release improves:

  • The http-kit stub responder is now easier to use
  • cljdoc badges #59 (thanks @polymeris)
martian - Encode the world

Published by oliyh over 6 years ago

This release breaks:

  • Any use of the encode-body and coerce-response interceptors in the clj-http, httpkit or cljs-http namespaces. These interceptors have been unified under martian.interceptors, see #23

This release adds support for:

  • Supporting custom encoding in addition to the built-in support for transit+msgpack, transit+json, edn and json #23

This release fixes:

  • Identical requests sent while the previous request is still pending are deduplicated in martian-re-frame #48

This release improves:

  • Documentation on per-route interceptors #49
  • Documentation on providing body parameters #50
martian - UUIDs and reflections

Published by oliyh over 6 years ago

This release adds support for:

  • UUIDs as added by @markdingram in #47 - thank you
  • A subscription to find out what requests are pending - #39

This release fixes:

  • Reflection warnings in the JVM libraries
martian - Idiomatic parameters - nested!

Published by oliyh about 7 years ago

This release contains enhancement #46 allowing kebab-cased keywords for all parameters, even in deeply nested bodies.

Package Rankings
Top 6.09% on Clojars.org
Badges
Extracted from project README
Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project cljdoc badge Clojars Project Clojars Project cljdoc badge Clojars Project cljdoc badge Circle CI
Related Projects