-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add response specs #6
Add response specs #6
Conversation
If there is no content, just return a nil? schema without any other processing. If the media type is "default" they convert to a keyword, otherwsie leave it as a string. This is how Reitit wants it.
Hey hey @bombaywalla long time! Thanks a lot for this, will take a proper look and get back asap. |
Thanks for the feedback. |
You could also take out the response coercions from the unsupported section on the readme too in this PR :) |
Since a LinkedHashMap implements HashMap, a LinkedHashMap "just works" with Clojure, without any interop needed. So, re-wrote it using reduce-kv. Changed the position of the map parameter from last to first in order to be consistent with update-keys and update-vals. Refactored other code to use update-kvs. Some minor comment changes.
Inspired by your experimentations with LinkedHashMap, I found that since a LinkedHashMap also implements HashMap, Clojure "just works" with it without any interop needed. So I re-wrote I also refactored the other code to use I updated the README to reflect current reality. See what you think of the current state and let me know if it can be made better. Thanks! |
Thanks a lot for the efforts and it looks good! Lemme know what you think of my extra change and post that we should be good to merge. |
Added support for generating response specs in addition to parameter specs.
With rudimentary tests.