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
After upgrading to Quarkus 3.17 partial Openapi files (openapi.yml) under META-INF is not merged into final openapi.yml schema.
In version 3.16.4 file is merged es expected.
Partial openapi.yml
It's fixed in smallrye-open-api 4.0.4 - I'm releasing it now 😃 . The related PR was smallrye/smallrye-open-api#2079, this is happening because the classes of the schema maps were not the same so the static file was dropped.
Describe the bug
After upgrading to Quarkus 3.17 partial Openapi files (openapi.yml) under META-INF is not merged into final openapi.yml schema.
In version 3.16.4 file is merged es expected.
Partial openapi.yml
openapi - not merged.txt
openapi - merged.txt
Expected behavior
openapi: 3.0.3
info:
title: openapi-issue API
version: 1.0.0-SNAPSHOT
paths:
/openapi-issue:
post:
tags:
- Resource
description: Do Action
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/DoActionRequest"
responses:
"201":
description: Created
components:
schemas:
ListOfValues:
enum:
- Area_condivisa
- AC
- ADCAM
- CNM
- IVATR
- IRAP
- MODIVA
- UNIPF
- UNISC
- UNISB
- UNISP
- STSET
type: string
DoActionRequest:
type: object
properties:
value:
$ref: "#/components/schemas/ListOfValues"
Actual behavior
components:
schemas:
DoActionRequest:
type: object
properties:
value:
$ref: "#/components/schemas/ListOfValues"
openapi: 3.1.0
paths:
/openapi-issue:
post:
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/DoActionRequest"
required: true
responses:
"201":
description: Created
summary: Do Action
tags:
- Resource
info:
title: openapi-issue API
version: 1.0.0-SNAPSHOT
How to Reproduce?
Start with quarkus:dev and open swagger-ui console
Output of
uname -a
orver
Microsoft Windows [Versione 10.0.22631.4460]
Output of
java -version
java version "17.0.4.1" 2022-08-18 LTS
Quarkus version or git rev
3.17.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
Reproducer here: https://github.com/luca-bassoricci/openapi-issue/
main branch for 3.17.2 behaviour, switch to branch 3.16.x for old one.
The text was updated successfully, but these errors were encountered: