docs: correct upload create docs (add required fields)#439
docs: correct upload create docs (add required fields)#439Maksym Verbovyi (vermaxik) wants to merge 3 commits intomasterfrom
Conversation
|
Maksym Verbovyi (@vermaxik) first, sorry for the delay, I was on vacation for a week. The problem with this PR is that it's causing breaking change for all clients. Declaring an existing parameter as required changes method signatures. ruby example: - def upload_create(project_id, file, file_format, locale_id, opts = {})
- data, _status_code, _headers = upload_create_with_http_info(project_id, file, file_format, locale_id, opts)
+ def upload_create(project_id, opts = {})
+ data, _status_code, _headers = upload_create_with_http_info(project_id, opts)
data
endWe'll have to discuss what to do in this case. IMO this should be merged, as it correctly describes the API, but it would need a major version bump for all the clients. Perhaps we should dedicate some time and investigate other potential places where this is needed, so that we have only one painful band-aid pull, rather than multiple ones in the future. Sönke Behrendt (@theSoenke) what do you think? |
|
jablan agree that we should spend some effort to check whether there are more such places to tackle all in one go. Although that might be some quite tedious work. Maybe we should then create a task for it? |
|
Maksym Verbovyi (@vermaxik) jablan what is the way forward here? Since tests are currently failing, I marked it as "draft" again. |
|
Manuel Boy (@docstun) we opened a ticket for it https://phrase.atlassian.net/browse/TSI-2145 unfortunately, we can't make it during these quality weeks. |
|
Maksym Verbovyi (@vermaxik) the logic for required fields is a bit more complex. |
|
Hi Sönke Behrendt (@theSoenke) thank you for checking it, good to know. FYI there is possibility to add discriminator/polymorphism for dynamic request/response, TMS has it a lot. Closing this PR in favor of #571 |
Maksym Verbovyi (@vermaxik) do they also generate a set of clients from OpenAPI description? I'm a bit concerned how different clients handle such cases. |
|
jablan looks like it should be supported https://openapi-generator.tech/docs/generators/openapi/#schema-support-feature afaik TMS doesn't have any official clients (and they still on openapi v2), but at our team we need to implement custom support for this feature and would love to avoid it as much as we can. |
It's not possible to use Upload Create endpoint without those fields, they are required: