Updating to version >2.7.53 breaks compatibility with Orval.
:beers: orval v7.17.0 - A swagger client generator for typescript
apiClient: Cleaning output folder
:octagonal_sign: apiClient - Error: Duplicate schema names detected:
9x Response
at writeSchemas (/app/node_modules/@orval/core/dist/index.js:3245:41)
at async Promise.all (index 0)
.....
Probable Issue:
When exporting OpenAPI specs, response components now use $ref to reference components/responses, but the schemas inside these responses are inline and unnamed:
v2.7.53
[Optimization] OpenAPI/Swagger specs import and export now support response components.
// before (working with Orval)
'500':
description: ''
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
required:
- message
headers: {}
// after (not working with Orval)
'500':
$ref: '#/components/responses/サーバーエラー'
description: ''
--------------------------------------
サーバーエラー:
description: ''
content:
application/json:
schema:
title: InternalServerErrorResponse
type: object
properties:
message:
type: string
required:
- message
Environment:
- Apidog Version: 2.7.54
- Tool affected: Orval v7.17.0
- Export format: OpenAPI 3.0 YAML
- OS: macOS
Possible Fixes:
Please add an export setting to control response component behavior, or automatically generate named schemas when using response components.
Also, would it be possible to download an earlier version (2.7.51) so I can continue working while this is fixed?
Thank you for your support.
P.S. should I have posted this in bug-report?