-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to match xml elements with namespace ? #91
Comments
yambati-tillster
changed the title
Matchers for xml elements with namespace
How to match xml elements with namespace
Nov 18, 2021
yambati-tillster
changed the title
How to match xml elements with namespace
How to match xml elements with namespace ?
Nov 18, 2021
I am currently blocked on this, Any updates or response for the issue is highly appreciated |
Pact-JVM repository would be a better place to raise this. But I don't recall seeing matching rule paths with namespaces in them. It might be a bug. |
Thank you! I would log the issue @ Pact-JVM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"matchingRules": { "body": { "$.request.Order.FutureOrder.PickupTime.{http://schemas.datacontract.org/2004/07/System}DateTime['#text']":{ "matchers": [ { "match": "regex", regex": "\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2]\\d|3[0-1])T(?:[0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+|)(?:Z|(?:\\+|\\-)(?:\\d{2}):?(?:\\d{2}))" } ] } } }
This rule is currently not matching ,Is this the right way to specify the path in the case of elements with namespace.
"$.request.Order.FutureOrder.PickupTime.{http://schemas.datacontract.org/2004/07/System}DateTime['#text']"
could not find any examples or documentation. using pact-jvm, pactSpecification specification version: 3.0.0
The text was updated successfully, but these errors were encountered: