Params bug: Incorrect placeholder value
Ashraf-Ali-aa opened this issue · 4 comments
Ashraf-Ali-aa 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-aa commented
@ardatan Could you have a look at this PR, not sure why the PR is failing, thanks
ardatan 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-aa commented
any updates on this issue?
Ashraf-Ali-aa commented
issue resolved