Closed evilsneer closed 3 years ago
Hi,
Thanks for reporting this. Could you show the output of (martian.core/explore martian :codes_create)
and indicate what you would expect it to look like instead?
Cheers
It looks like
{:summary "Create Code object",
:parameters {:data {:_ nil}},
:returns
{201 RETURN-PARAMS-IS-OK}}
as you see, :parameters
is {:data s/ANY}
, аt fact.
I expect some kind of
{:summary "Create Code object",
:parameters {:data {
{:k :dataset} {:schema {:p? #obj :pred-name integer?}}
{:k :description} {:schema {:p? #obj :pred-name string?}}
{:k :goal} {:schema {:p? #obj :pred-name integer?}}
{:k :name} {:schema {:p? #obj :pred-name string?}}
{:k :state} {:schema {:p? #obj :pred-name integer?}}
{:k :systems} [{:p? #obj, :pred-name integer?}]}},
:returns
{201 RETURN-PARAMS-IS-OK}}
Hi @evilsneer
Thanks, I will look into this
Hi @evilsneer
This should be fixed in the latest 0.1.15-SNAPSHOT
which is now on clojars, could you try it and let me know?
Thanks
Yes, it works perfectly. Thanks!
If parameters schema for point in swagger.json described without $ref, but like
then Martian method schema seems like
{:data s/Any}
It is still valid swagger, I assume. It perfectly works with swagger-ui.
I guess I could dig somewhere around
martian.swagger/body(?)-schema
to fix it?