Skip to content

Provide raw path params support to runtime/client #138

Open
@heww

Description

@heww

Can you provide raw path params support to runtime/client so that the following paths for client request works.

paths:
  '/repositories/{repo_name}/tags':
    get:
      summary: Get tags of a relevant repository.
      tags:
        - repository
      operationId: listRepositoryTags
      parameters:
        - name: repo_name
          in: path
          type: string
          required: true
          description: Relevant repository name.
      responses:
        '200':
          description: Get tags successfully.
          schema:
            type: array
            items:
              $ref: '#/definitions/DetailedTag'
params := repository.ListRepositoryTagsParams{
    RepoName: "library/ubuntu",
}

resp, err := h.Repository.ListRepositoryTags(ctx, &params)

current repo_name library/ubuntu will request to the API /repositories/library%2Fubuntu/tags but the expect API is /repositories/library/ubuntu/tags

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions