You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, using clojure.spec.alpha/int-in in a spec causes the generated Swagger 2 spec to infer the spec's type as null. Instead, you should end up with something like this:
I'm happy to contribute a PR for this if you can point me in the right direction. I see that part of the problem is that there's no implementation for the spec-tools.parse/parse-form multimethod for int-in, but I'm not sure where to go from there.
The text was updated successfully, but these errors were encountered:
I'm happy to contribute a PR for this if you can point me in the right direction. I see that part of the problem is that there's no implementation for the spec-tools.parse/parse-form multimethod for int-in, but I'm not sure where to go from there.
Are you saying you'd prefer to continue the discussion in the PR?
@maxrothman do you still want to work on this issue? Reading your first post seems like you identified half the problem, you need to add the parse-form for int-in and also add to swagger.core a new dispatch for accept-spec.
Unfortunately I've moved on from the project that prompted me to file this issue, and I don't have the bandwidth to contribute a PR anymore. Thanks for the help @wandersoncferreira, and I hope I can come back around to this at some point!
Currently, using
clojure.spec.alpha/int-in
in a spec causes the generated Swagger 2 spec to infer the spec's type asnull
. Instead, you should end up with something like this:I'm happy to contribute a PR for this if you can point me in the right direction. I see that part of the problem is that there's no implementation for the
spec-tools.parse/parse-form
multimethod forint-in
, but I'm not sure where to go from there.The text was updated successfully, but these errors were encountered: