Receiving violation: ____ must match pattern: error from validator when running prism #2235
Unanswered
williamj20
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently running prism with an openapi spec using the command
prism mock test.yaml
. Then I'm testing an api response using Postman. I have a parameter defined as:which should be in the response body of one of my GET requests. However, when I run the GET request on postman, I receive an error like so:
error Violation: response.body.string must match pattern '^[0-9]{32}$'
I thought Prism was supposed to generate this response based on this pattern? Am I misunderstanding/doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions