-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
Make it possible to flexibly compare XML bodies #134
Milestone
Comments
sckott
added a commit
that referenced
this issue
Oct 15, 2024
- convert the stub body pattern from json to a list if it seems like json - in body_as_hash change fromJSON to not use FALSE as second param - #134 in body_as_hash change xml approach to try catch converting xml to a list or return xml as character on error - in matches method for bodypattern add handling of pattern or request body being NA or NULL and returning false if so
some work done in commit above - not totally sure this is done yet, to do at least:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now a user has to give an xml class item to stub_request to match to an xml request body because for request bodies if we detect xml we just use
xml2::read_xml
which gives axml_document
class, which appears we can not compare to even another xml_doc probably because they have different pointersWhat we're aiming for is to be able to do the following
In which the stub can just have an R list while the request body has XML (or JSON or a list itself), but we can still compare them
The text was updated successfully, but these errors were encountered: