wiremock icon indicating copy to clipboard operation
wiremock copied to clipboard

adding host in mock request

Open prakashnathjha opened this issue 1 year ago • 0 comments

Summary

Following the doc it is mentioned that host is string type but when you actually add host as string wire mock fails with error

FileException: Error loading file /home/wiremock/./mappings/mock.json:
my_wiremock  | "example.com" is not a valid match operation

When we use host as object type this error is not present

"host": {
      "equalTo": "example.com"
    }

Hence I think the doc needs to be updated to reflect the correct data type of host

References

No response

prakashnathjha avatar Nov 05 '24 12:11 prakashnathjha