sharplab / deepl4j

DeepL API v2 client library for Java
Apache License 2.0
3 stars 0 forks source link

Long sentence cannot be translated as the sentence is sent over request query parameter, not request body. #5

Open ynojima opened 2 years ago

ynojima commented 2 years ago

Since DeepL rejects too long request URL, long sentence need to be sent over a arequest body, but DeepL4J sends over request query parameter because OpenAPI generator doesn't support enconding.<property-name>.explode. When OpenAPI generator supports it, it can be resolved by merging use-request-body branch.

wombelix commented 2 years ago

Might worth to mention the related Issue: https://github.com/OpenAPITools/openapi-generator/issues/11256