-
Notifications
You must be signed in to change notification settings - Fork 59
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
how to validate API Parameters in a generic way for all APIs of a collection? #543
Comments
hi @techwizardg We have feature Fuzzing: https://github.com/apideck-libraries/portman?tab=readme-ov-file#portman---fuzzing-properties---beta-
Can you share a couple of examples of what you are expecting? |
Hi @thim81 , I wanted to find a generic way to validate API Parameters for their allowed values and validate if the right error codes are thrown |
@thim81 please check sample payload and allowed values in description below. we want testcases including valid, invalid and blank values. "sender": { idType idValue mpin accountGroupId productId |
The Fuzzing option in Portman does generate specific tests for required, minLength, ..., just make sure that they are defined in the OpenAPI specification. It does not do type checking since that would explode the number of tests in Postman. For the ENUM, you could leverage a contentTest with an overwrite. There is an example for Fuzzing: https://github.com/apideck-libraries/portman/tree/main/examples/testsuite-fuzzing-tests that you can use for inspiration. |
We have a huge collection of APIs and all APIs needs to be validated for input parameters like string or valid values. Can this be achieved in a generic way by definition of rules or regular expressions as opposed to adding request parameter validation in every API of postman collection?
Can Portman help here?
The text was updated successfully, but these errors were encountered: