Skip to content

Version 13.0.10 doesn't respect onInsertPathParam hook #806

Closed
@ramondeklein

Description

@ramondeklein

I'm using the following custom configuration:

module.exports = {
  hooks: {
    onInsertPathParam: (paramName) => `encodeURIComponent(${paramName})`,
  },
};

This encodes all parameters using encodeURIComponent in the URL path. This works great with v13.0.9, but it doesn't work with v13.0.10 anymore.

This is generated with v13.0.9:

    deleteBucket: (name: string, params: RequestParams = {}) =>
      this.request<void, ApiError>({
        path: `/buckets/${encodeURIComponent(name)}`,
        method: "DELETE",
        secure: true,
        ...params,
      }),

This is generated with v13.0.10:

    deleteBucket: (name: string, params: RequestParams = {}) =>
      this.request<void, ApiError>({
        path: `/buckets/${name}`,
        method: "DELETE",
        secure: true,
        ...params,
      }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions