Forum Discussion

prasadm's avatar
prasadm
New Contributor
6 years ago

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

  • 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.

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    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.