Ask a Question

Problem with properties validation on mock server

SOLVED
Stukalov07
New Contributor

Problem with properties validation on mock server

Hi!

I`ve got a problem with Request properties validation. I`m using default mock server https://virtserver.swaggerhub.com/ and default template "Simple API".

this template has the required property "id":

Stukalov07_0-1633011386521.png

 

 So, i trying to send incorrect request without this property and expecting 400 status as a response, but receiving 201 status. Does somebody know how to resolve it ?

Stukalov07_1-1633011850527.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Stukalov07
New Contributor

Re: Problem with properties validation on mock server

2 REPLIES 2
Stukalov07
New Contributor

Re: Problem with properties validation on mock server

Moreover! I`ve sent an empty body request and also got a 201 status. Funny 😁

Stukalov07_0-1633012406489.png

 

Stukalov07
New Contributor

Re: Problem with properties validation on mock server

cancel
Showing results for 
Search instead for 
Did you mean: