Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random responses #61

Open
novicov opened this issue Jul 7, 2021 · 0 comments
Open

Random responses #61

novicov opened this issue Jul 7, 2021 · 0 comments

Comments

@novicov
Copy link

novicov commented Jul 7, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant