-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we verify the length of a string using PACT #586
Comments
There is no way to do this, at the moment. Can you provide some insight on what you need to achieve? |
I need to verify a length of a string. For example there is a ORDER_NUMBER where as per contract should be upto 15 Characters. I want to verify whether in response we are getting less than 15 Chars or not. The max and min values need to be verified. Is it possible through PACT |
what is the conclusion here? |
This is currently unsupported |
I tried achieving something like this first using a string matcher with Edit: Also ran into issues like these: #1848 |
For context: jakarta validations (which as far as I know is used a lot) provides the @SiZe annotation that enforces that string fields don't exceed a certain length. If we want to prevent that before deployment, we need a way to assert the length of a string field. |
If Yes do we have any example for it.
The text was updated successfully, but these errors were encountered: