Need more information – which framework do you use? Which library do you use to 
generate your API definition?

 

 

 

From: <[email protected]> on behalf of "[email protected]" 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Monday, 24 July 2017 at 1:29
To: Swagger <[email protected]>
Subject: when using @Valid , Param object is identified as on param

 

My code is like this 
public ReturnResult payDetail(DetailParam detailParam, BindingResult 
bindingResult) {
    return null;
}
and this is just fine for my project , "detailParam" is identified  as a param 
object ,it contains seviral simple
 params  like "name","ags" etc. 
But when I used @Valid
public ReturnResult payDetail(@Valid DetailParam detailParam, BindingResult 
bindingResult) {
    return null;
}
"detailParam" is identified as a single param which just named "detailParam" . 
What shall I do to fix this?
-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to