-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Open
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
Description
In the project we have multiple Open API Yaml files which are generated together with the InputSpecRootDirectory option. The deliverySlot
parameter is defined in routes.yaml as QueryParam
and in timetables.yaml as PathParam
. As a result for both yaml files the deliverySlot
was generated as QueryParam
.
When the APIs are generated individually using the inputSpec option, then the QueryParam and PathParam annotations are set properly.
openapi-generator version
7.15.0
OpenAPI declaration file content or url
openapi: 3.0.1
info:
title: "Route API"
paths:
/routes/{routeId}/compute-position:
get:
summary: Compute a valid position on a route.
operationId: computePosition
parameters:
- $ref: '#/components/parameters/routeId'
- $ref: '#/components/parameters/deliverySlot'
responses:
200:
description: Ok
content:
application/json:
schema:
type: boolean
components:
parameters:
routeId:
description: The identifier of a route.
name: routeId
in: path
required: true
schema:
type: string
deliverySlot:
description: A delivery slot.
name: deliverySlot
in: query
required: true
schema:
type: string
openapi: 3.0.1
info:
title: "Timetables API"
paths:
/timetables/{deliverySlot}/timeSlot:
get:
summary: Get the time slot for a delivery slot.
operationId: getTimeSlot
parameters:
- $ref: '#/components/parameters/deliverySlot'
responses:
200:
description: Ok
content:
application/json:
schema:
type: string
components:
parameters:
deliverySlot:
description: A delivery slot.
name: deliverySlot
in: path
required: true
schema:
type: string
Generation Details
Maven Plugin
generatorName: jaxrs-spec