-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Check if StorageInputType needs to be in TranslationSource or in DocumentTranslationInput #23084
Comments
It's true now that |
Ohh interesting. So looking at the swagger, StorageType seems to be independent of source or target (which is how we have it in the library). Something that could help will be to have a table with the 4 possible combinations and see which cases works, which cases don't work, and try to send those requests with Postman and see what you get |
Let's have a look into the interesting results, I've tested all the combinations using both Postman and the actual SDK. Case 1: Case 2: Case 3: Case 4: I think we need to move |
This is great @ZulaMostafa . I agree with you that it seems like we can move the |
The service team didn't see a reason to move it, especially since the service already GAd this way. The fear is that in the future this property applies equally to both source and target and if we move it in the SDK to only source, it will be harder to reconcile. Decision in SDK: leave as is |
The reason why it is in
DocumentTranslationInput
is that bothsource
andtarget
had to have the samestorageInput
. I believe the service updated their behavior and this is no longer required, but need to double-check.If it is no longer needed for a target too, we should move the
DocumentTranslationInput.Storagetype
property to theTranslationSource
typeThe text was updated successfully, but these errors were encountered: