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
Describe the bug
Hi! I have multiple OpenAPI specs with same info section. I want to bundle them in one file using redocly join. For it I am using script:
openapi: "3.1.0"info:
description: Server Errorversion: 1.0.0title: Server Errorcontact:
name: Kirill Burl: kiryuxa.comemail: baskirill.an@gmail.compaths: {}components:
schemas:
ServerError:
type: objectrequired: [message]properties:
message:
type: stringdescription: A description of the error.example:
message: "Internal Server Error. Please try again later."
╔═══════════════════════════════════════════════════════╗
║ ║
║ A new version of Redocly CLI (1.20.1) is available. ║
║ Update now: `npm i -g @redocly/cli@latest`. ║
║ Changelog: https://redocly.com/docs/cli/changelog/ ║
║ ║
╚═══════════════════════════════════════════════════════╝
./openapi.yml: join processed in 11ms
Exception in thread "main" org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 1, Warning count: 2
Errors:
-info.contact.kiryuxa.com
Warnings:
-info.contact.kiryuxa.com
at org.openapitools.codegen.config.CodegenConfigurator.toContext(CodegenConfigurator.java:717)
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:744)
at org.openapitools.codegen.cmd.Generate.execute(Generate.java:527)
at org.openapitools.codegen.cmd.OpenApiGeneratorCommand.run(OpenApiGeneratorCommand.java:32)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:66)
Expected behavior
Bundle file, that contains section:
Describe the bug
Hi! I have multiple OpenAPI specs with same
info
section. I want to bundle them in one file usingredocly join
. For it I am using script:Added to
Screenshots
folder structure.openapi/specs/common/ServerError.yml
:openapi/specs/common/ClientError.yml
:As I mentioned I am using command to bundle OpenAPI files to one file:
But after executing command I gets an error:
Expected behavior
Bundle file, that contains section:
Minimal reproducible OpenAPI snippet(if possible)
openapi/specs/common/ClientError.yml
openapi/specs/common/ServerError.yml
openapi
folder:Screenshots
Folder structure:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: