Forum Discussion
mhiggins
Staff
4 years agoOK, try this, treat servers as an array:
path: $.servers.1.url
regex: https://{host}/mypath
- path must exit: false
Problem is, this assumes the "desired path" is always the second URL under the Servers tag.
Maybe have another rule that $.servers.0.url must exist and NOT be the special path ?
Or make sure the "special path" is always the first [zero] URL. The auto-mock doesn't need to be first <grin>.