We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spec/coll-of
spec-tools.visitor has (defmethod visit-spec 'clojure.spec.alpha/coll-of ...) which ends up dispatching on
spec-tools.visitor
(defmethod visit-spec 'clojure.spec.alpha/coll-of ...)
(case type :map-of ::map-of :set ::set-of :vector ::vector-of)
while there is no implementation of accept-spec for any of #{::visitor/map-of, ::visitor/set-of, ::visitor/vector-of}
accept-spec
#{::visitor/map-of, ::visitor/set-of, ::visitor/vector-of}
I've tried to add a
(defmethod swagger/accept-spec ::vector-of [_ _ children _] (println "CHILDREN-VECTOR-OF" (util/pp children)) {:enum children :type "string"})
this prints CHILDREN-VECTOR-OF [{}]
CHILDREN-VECTOR-OF [{}]
This leads me to suspect that the implementation of visit-spec for clojure.spec.alpha/coll-of is flawed.
visit-spec
clojure.spec.alpha/coll-of
The text was updated successfully, but these errors were encountered:
If you have time to investigate & to fix, help would be most welcome.
Sorry, something went wrong.
No branches or pull requests
spec-tools.visitor
has(defmethod visit-spec 'clojure.spec.alpha/coll-of ...)
which ends up dispatching onwhile there is no implementation of
accept-spec
for any of#{::visitor/map-of, ::visitor/set-of, ::visitor/vector-of}
I've tried to add a
this prints
CHILDREN-VECTOR-OF [{}]
This leads me to suspect that the implementation of
visit-spec
forclojure.spec.alpha/coll-of
is flawed.The text was updated successfully, but these errors were encountered: