Skip to content

Bug: parameter.name is not referenced correctly #15

Closed
@Himenon

Description

@Himenon

Steps To Reproduce

components:
  parameters:
    client-id:
      name: client_id
      in: path
      required: true
      description: The client ID of your GitHub app.
      schema:
        type: string

paths:
  /get/{client_id}:
    get:
      operationId: getBooks
      parameters:
        - $ref: "#/components/parameters/client-id"
      responses:
        200:
          description: "ok"

Playground

The current behavior

export interface Parameter$getBooks {
    client-id: Parameters.client-id;
}

The expected behavior

export interface Parameter$getBooks {
    client_id: Parameters.client-id;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions