Params bug: Incorrect placeholder value
Ashraf-Ali-aa opened this issue · comments
Ashraf Ali commented
Describe the bug
When a URL contains a placeholder value along with .json the params key includes .json
as the key
async function main() {
const res = await apiClient['/pets/{petId}.json'].get({
params: {
petId: '82666346', <---- Error
'petId}.json': '82666346', <---- intelisense value
},
});
export type ExtractPathParamsWithBrackets<TPath extends string> = Pipe<
TPath,
[
Strings.Split<'/' | ';'>,
Tuples.Filter<Strings.StartsWith<'{'> & Strings.EndsWith<'}'>>,
Tuples.Map<Strings.Trim<'{' | '}'>>,
Tuples.ToUnion,
]
>;
Ashraf Ali commented
@ardatan Could you have a look at this PR, not sure why the PR is failing, thanks
Arda TANRIKULU commented
Me neither :) I am not fully available on the next few daya so if anyone has time and interested in, i'd appreciate
Ashraf Ali commented
any updates on this issue?
Ashraf Ali commented
issue resolved