Skip to content

code generated for endpoint is invalid when endpoint path and response type have same prefix #255

@mahbh2001

Description

@mahbh2001

As shown in the following sample, with endpoint "query" returning "QueryResponse" type conflicts with the generated code for ClientWithResponsesInterface which also produce "QueryResponse" type to wrap the HTTP responses.

paths:
/query:
post:
tags:
- Search
summary: Queries using the input request criteria.
description: "The API supports full-text search"
operationId: Query
parameters:
- $ref: "#/components/parameters/data-id"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/QueryRequest"
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/QueryResponse"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions