com.itv.scalapact.shared.matchir
package com.itv.scalapact.shared.matchir
Type members
Classlikes
final case class IrNode(label: String, value: Option[IrNodePrimitive], children: List[IrNode], ns: Option[String], attributes: IrNodeAttributes, isArray: Boolean, isXml: Boolean, path: IrNodePath)
- Companion
- object
object PactPath
PactPath (defined in the pact standard) is JsonPath with a few tweaks to support querying XML with a nearly JsonPath-like syntax. Specific modifications to JsonPath are:
PactPath (defined in the pact standard) is JsonPath with a few tweaks to support querying XML with a nearly JsonPath-like syntax. Specific modifications to JsonPath are:
- names match to element names ($.body.animals maps to <animals>)
- @names match to attribute names
- #text match to the text elements
JsonPath support a ["xxx"] form which we use for to escape the @ and #. e.g. foo.bar["#text"] foo.bar['@id']