Azure / autorest

OpenAPI (f.k.a Swagger) Specification code generator. Supports C#, PowerShell, Go, Java, Node.js, TypeScript, Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paging problem if "nextLink" contains parameters

lmazuel opened this issue · comments

In GraphRbac, the next link while paging has this form:
directoryObjects/$/Microsoft.DirectoryServices.User?$skiptoken=X'445....0000'

Which means a partial path with some parameters (i.e. /a/b/c?t=y form).

The Python code is unable to deal with that currently. Example:

  • The method msrest.paging.Paged._validate_url refuses this kind of path
  • The generated code expect a variable urlwith path-only and a dict query_parameters with parameters. The current code leads to:
url="/a/b/c?t=y"
query_parameters={"api-version":"1.6"}

which produces the url:

/a/b/c?t=y?api-version=1.6