Skip to content

Multiple queries not merged on expand to string #2

@DoCode

Description

@DoCode

Steps to reproduce

  • Example 1:
    var result = UriTemplate.For("https://localhost:5000/api/resource{?key,value}{?id,name}")
                            .WithPartialExpand()
                            .ExpandToString();
  • Example 2:
    var result = UriTemplate.For("https://localhost:5000/api/resource?key=mykey&value=myValue{?id,name}")
                            .WithPartialExpand()
                            .ExpandToString();

Expected behavior

  • Example 1:
    result == "https://localhost:5000/api/resource{?key,value}{&id,name}"
    or
    result == "https://localhost:5000/api/resource{?key,value,id,name}"
  • Example 2:
    result == "https://localhost:5000/api/resource?key=mykey&value=myValue{&id,name}"

Actual behavior

  • Example 1:
    result == "https://localhost:5000/api/resource{?key,value}{?id,name}"
  • Example 2:
    result == "https://localhost:5000/api/resource?key=mykey&value=myValue{?id,name}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions