Skip to content

[Bug]: getPathParamOptions return undefined, on allowReserved=true #4132

@weidongxu-microsoft

Description

@weidongxu-microsoft

Describe the bug

code
image

result
image

It can be seen that HttpOperationPathParameter.allowReserved is true.

But if dev call getPathParamOptions on the HttpOperationPathParameter.param, the result is undefined.

This appears to be an inconsistency. It does not block anything. We just use HttpOperationPathParameter.allowReserved.

Reproduction

URI template operation like below

  @route("/contoso/{+group}")
  interface ServerOp {
    get(group: string): OkResponse | NoContentResponse;
  }

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions