You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The parameters of a path item and an operation object do not get merged if the spec version is 3.1.0 and they both contain a referenced parameter.
openapi-generator version
7.7.0
OpenAPI declaration file content or url
openapi: 3.1.0info:
title: Open APIversion: 1.0.0paths:
/{path}:
parameters:
- $ref: "#/components/parameters/path"get:
parameters:
- $ref: "#/components/parameters/query"summary: Returns a list of users.responses:
200:
description: get somethingcontent:
application/json:
schema:
type: stringcomponents:
parameters:
path:
name: pathin: pathrequired: trueschema:
type: stringquery:
name: queryin: queryrequired: falseschema:
type: string
Generation Details
I have tried a handful of generators with their default configs and each time the path parameter was missing in the generated output while the query parameter was present. Going back to version 3.0.2, only using one parameters array or inlining the parameters all fix the problem.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
The parameters of a path item and an operation object do not get merged if the spec version is 3.1.0 and they both contain a referenced parameter.
openapi-generator version
7.7.0
OpenAPI declaration file content or url
Generation Details
I have tried a handful of generators with their default configs and each time the path parameter was missing in the generated output while the query parameter was present. Going back to version 3.0.2, only using one parameters array or inlining the parameters all fix the problem.
The text was updated successfully, but these errors were encountered: