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
When building an expecting response, it is currently only possible to define JSON patterns (afaik).
However, some apis may return a plain text boolean as in True or False.
I do not find a possibility to define a pattern for a text response, as the function ResponseBuilder::body() accepts no patterns.
I tried fiddling with body_and_matching_rules_mut(), but this would
be a bit cumbersome to use
does not work as necessary structs are not public.
The following does not work either as it returns the boolean encapsulated inside "True" or "False".
When building an expecting response, it is currently only possible to define JSON patterns (afaik).
However, some apis may return a plain text boolean as in
True
orFalse
.I do not find a possibility to define a pattern for a text response, as the function
ResponseBuilder::body()
accepts no patterns.I tried fiddling with
body_and_matching_rules_mut()
, but this wouldThe following does not work either as it returns the boolean encapsulated inside
"True"
or"False"
.It would be great when textual patterns could be implemented.
The text was updated successfully, but these errors were encountered: