muonsoft/openapi-mock

Random responses

Opened this issue · 0 comments

Hello! I'm testing a mock server in docker, I ran into a problem that the answers come in different forms, either 200 ok status and a string, or a serialized model in the form of json, or a 500 code with an error in the form of a string. All models are described correctly in Swagger.json, is this behavior correct? Is it possible to generate only a successful response that was described in the swagger response model?

command:
docker run -p 8080:8080 -e "OPENAPI_MOCK_SPECIFICATION_URL=https://mpauth-uat.vtbcapital-broker.ru/nabixProxy/clients/swagger/v1/swagger.json" -e "OPENAPI_MOCK_SUPPRESS_ERRORS=1" -e "OPENAPI_MOCK_USE_EXAMPLES=if_present" -e "OPENAPI_MOCK_NULL_PROBABILITY=0" --rm muonsoft/openapi-mock

swagger 200 model:
image
image

pQ2LRvGUtr.mp4