-
Notifications
You must be signed in to change notification settings - Fork 44
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
add test for error deserialization in op with param name 'models' #234
add test for error deserialization in op with param name 'models' #234
Conversation
legacy/routes/errorStatusCodes.js
Outdated
models_param = req.query['models'] | ||
if (models_param == 'value1') { | ||
res.status(500).json(sadCasper); | ||
coverage['sendErrorWithParamNameModels']++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it optional, since this might be python specific
…into add_operation_with_error_model_and_param_model * 'master' of https://github.com/Azure/autorest.testserver: add test for first response no items, second response with items (#235)
…into special_paging * 'master' of https://github.com/Azure/autorest.testserver: add test for error deserialization in op with param name 'models' (#234) add test for first response no items, second response with items (#235)
I think if we are adding tests to the test server they should be useful for every language. This seems to be more of a python-specific test that other languages would have to implement without much benefit. I see two things we can do here:
|
I see @pakrym, sorry I merged this before you could comment. The more I read your message the more it makes sense. Opened an issue to transfer this to the autorest python repo (so far we don't have any swaggers specific to that repo so need to set that up). In the meantime, it's tagged as optional coverage, so it shouldn't break any languages if they choose not to implement it |
…into multiapi_diff_signatures * 'master' of https://github.com/Azure/autorest.testserver: Pass through program exit code when using start-autorest-express (#240) fix value retval (#237) add test for error deserialization in op with param name 'models' (#234) add test for first response no items, second response with items (#235) bump version after failing to in no op swagger addition (#231) add swagger for no operations (#230)
Python ran into an issue for (error) model deserialization when our operation had an input parameter named
models
.(python ex). Adding test to make sure other languages don't run into this conflict. Making this optional coverage, since right now it seems p specific to how python deserializes models. Other languages shouldn't have a problem passing the test though