You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that CreateAPI generates a POST request using URLQueryEncoder.encode(body).percentEncodedQuery as the body, but it should be using the asQuery property instead. This causes the request to be incorrect because URLQueryEncoder.encode(body).percentEncodedQuery uses camelCase for the property names, but the expected format is snake_case, which asQuery correctly uses.
In the test the property pattern_without_delimiter incorrectly would be called patternWithoutDelimiter in the POST request.
Hi, I'm working on a library for DeepL (it's amazing to see the capabilities of CreateAPI) and while doing so I encountered a bug that even seams to be present in the tests (https://github.com/CreateAPI/CreateAPI/blob/da8730b23dab769414229bb386b3dcc2a77d6e42/Tests/Support/Snapshots/edgecases-change-access-control/Sources/Paths/PathsFake.swift).
The problem is that CreateAPI generates a POST request using
URLQueryEncoder.encode(body).percentEncodedQuery
as the body, but it should be using theasQuery
property instead. This causes the request to be incorrect becauseURLQueryEncoder.encode(body).percentEncodedQuery
uses camelCase for the property names, but the expected format is snake_case, whichasQuery
correctly uses.In the test the property
pattern_without_delimiter
incorrectly would be calledpatternWithoutDelimiter
in the POST request.So instead of
CreateAPI/Tests/Support/Snapshots/edgecases-change-access-control/Sources/Paths/PathsFake.swift
Line 57 in da8730b
I would expect:
The text was updated successfully, but these errors were encountered: