ardatan/feTS

Params bug: Incorrect placeholder value

Ashraf-Ali-aa opened this issue · 4 comments

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, 
  ]
>;

@ardatan Could you have a look at this PR, not sure why the PR is failing, thanks

Me neither :) I am not fully available on the next few daya so if anyone has time and interested in, i'd appreciate

any updates on this issue?

issue resolved