cancel
Showing results for 
Search instead for 
Did you mean: 

Mock not validating data value using the format specified

SOLVED
Highlighted
New Contributor

Mock not validating data value using the format specified

I am using swagger hub, set up json requests. If I set on if the parameter data type as integer and pass in a string,  mock testing is still succeeding. Does mock testing validate input data types ?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: Mock not validating data value using the format specified

SwaggerHub mock server only mocks the responses. It does not validate the inputs or implement business logic. You can generate and use a server stub if you need to actually process the inputs.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

1 REPLY 1
Highlighted
Moderator

Re: Mock not validating data value using the format specified

SwaggerHub mock server only mocks the responses. It does not validate the inputs or implement business logic. You can generate and use a server stub if you need to actually process the inputs.


Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements