cancel
Showing results for 
Search instead for 
Did you mean: 
Welcome to the September Hub-bub

We are inviting you to join our exciting online event where you can learn a lot of useful information, share your knowledge and have fun. Each week, we will reward the best posters with free gift cards .

Just pick any topic you like in the SwaggerHub Community, or create your own to dive into the wonderful September Hub-bub.

Event duration: September 2-27. More information.

This Week Top Contributors:

We will decide the winners next Monday

Mock not validating data value using the format specified

SOLVED
Highlighted
Visitor

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
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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
1 REPLY 1
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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
Watch the New Interview
7Mistakes
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win