matches

fun matches(param: String, value: String, id: String? = null)

Adds a requirement that the value of the specified parameter matches the given value

Parameters

param

parameter name

value

regex to check for a match

id

optional requirement id, if not specified will be generated