Skip to content

Support for encoding route params #446

Closed
@Liwoj

Description

@Liwoj

In case this was discussed before, pleas point me into a right direction - I was not able to find anything.

In case of "in path" params, the generated client code just uses simple string interpolation to create a path. For example: path: ``/Overrides/Reasons/${ratingSegmentIdent}\``

This means that any param is included in the path by calling ToString() which is not always the best approach. First it could be great if there was a way to automatically use encodeURIComponent() to encode the param. Second in case of Date param, the ToString() is definitelly not what you want to have in the path

Maybe provide some additional hook to allow us to encode the params ?

Thanks!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions