com.itv.scalapact.shared.matchir

Type members

Classlikes

final case class IrBooleanNode(value: Boolean) extends IrNodePrimitive
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 IrNode
Companion
class
final case class IrNodeAttribute(value: IrNodePrimitive, path: IrNodePath)
Companion
class
final case class IrNodeAttributes(attributes: Map[String, IrNodeAttribute])
Companion
object
sealed abstract class IrNodeEqualityResult(val isEqual: Boolean)
Companion
object
Companion
class
sealed abstract class IrNodeMatchPermissivity(val bePermissive: Boolean)
Companion
object
final case class IrNodeMatchingRules(rules: List[IrNodeRule], withTracing: RuleProcessTracing)
Companion
object
Companion
class
sealed trait IrNodePath
Companion
object
object IrNodePath
Companion
class
sealed trait IrNodePrimitive
sealed trait IrNodeRule
Companion
object
object IrNodeRule
Companion
class
case object IrNullNode extends IrNodePrimitive
final case class IrNumberNode(value: Double) extends IrNodePrimitive
final case class IrStringNode(value: String) extends IrNodePrimitive
object MatchIr
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']

sealed trait PactPathParseResult
Companion
object
Companion
class
object RuleChecks
final case class RuleProcessTracing(enabled: Boolean, id: String, context: Option[String])
Companion
object
Companion
class