{"action":"created","issue":{"url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/729","repository_url":"https://api.github.com/repos/OpenAPITools/openapi-generator","labels_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/729/comments","events_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/729/events","html_url":"https://github.com/OpenAPITools/openapi-generator/issues/729","id":347430740,"node_id":"MDU6SXNzdWUzNDc0MzA3NDA=","number":729,"title":"[PYTHON] migration problems from swagger-codegen with PATCH call parameters","user":{"login":"Amoki","id":1349751,"node_id":"MDQ6VXNlcjEzNDk3NTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1349751?v=4","gravatar_id":"","url":"https://api.github.com/users/Amoki","html_url":"https://github.com/Amoki","followers_url":"https://api.github.com/users/Amoki/followers","following_url":"https://api.github.com/users/Amoki/following{/other_user}","gists_url":"https://api.github.com/users/Amoki/gists{/gist_id}","starred_url":"https://api.github.com/users/Amoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amoki/subscriptions","organizations_url":"https://api.github.com/users/Amoki/orgs","repos_url":"https://api.github.com/users/Amoki/repos","events_url":"https://api.github.com/users/Amoki/events{/privacy}","received_events_url":"https://api.github.com/users/Amoki/received_events","type":"User","site_admin":false},"labels":[{"id":931403013,"node_id":"MDU6TGFiZWw5MzE0MDMwMTM=","url":"https://api.github.com/repos/OpenAPITools/openapi-generator/labels/Client:%20Python","name":"Client: Python","color":"fad8c7","default":false},{"id":1013821647,"node_id":"MDU6TGFiZWwxMDEzODIxNjQ3","url":"https://api.github.com/repos/OpenAPITools/openapi-generator/labels/Issue:%20Migration","name":"Issue: Migration","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-08-03T15:00:11Z","updated_at":"2018-08-06T12:58:19Z","closed_at":"2018-08-06T12:50:43Z","author_association":"NONE","body":"##### Description\r\nI migrated from swagger-codegen (too many critical fix in merge pending) but now I face a big change in generated code.\r\nPATCH requests now require to have an instance of the object in parameters or an exception is raised \r\n\r\n```python\r\nTypeError: update_user() missing 1 required positional argument: 'user'\r\n```\r\n\r\nIn many case, I don't care about the previous values so I never retrieve the object before the PATCH call.\r\n\r\nI can't find when this change append. Is there a parameter during generation to keep the old behavior ?\r\n\r\n##### openapi-generator version\r\n\r\n3.1.2\r\n\r\n##### Command line used for generation\r\n\r\njava -jar openapi-generator.jar generate -i swagger.json -l python -o ~/libs/python-lib\r\n\r\n##### Steps to reproduce\r\n\r\njava -jar swagger-codegen-2.3.1.jar generate -i swagger.json -l python -o ~/libs/python-lib\r\n`update_user(id=1, name='new name')` -> works\r\njava -jar openapi-generator.jar generate -i swagger.json -l python -o ~/libs/python-lib\r\n`update_user(id=1, name='new name')` -> TypeError: update_user() missing 1 required positional argument: 'user'\r\n\r\n##### Related issues/PRs\r\n\r\nNot able to find one :(\r\n\r\n##### Suggest a fix/enhancement\r\n\r\nParameter to chose behavior ?\r\n\r\n\r\nThanks !\r\n"},"comment":{"url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/comments/410699142","html_url":"https://github.com/OpenAPITools/openapi-generator/issues/729#issuecomment-410699142","issue_url":"https://api.github.com/repos/OpenAPITools/openapi-generator/issues/729","id":410699142,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDY5OTE0Mg==","user":{"login":"wing328","id":934260,"node_id":"MDQ6VXNlcjkzNDI2MA==","avatar_url":"https://avatars2.githubusercontent.com/u/934260?v=4","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T12:58:19Z","updated_at":"2018-08-06T12:58:19Z","author_association":"MEMBER","body":"@Amoki no problem. Let us know if you need any help with the migration."}}
{"actor":{"display_login":"wing328"}}