Skip to content

Splitting one yaml into different files and setting validateSpec=false still results in parser failure #881

Open
@SteveGueldner

Description

@SteveGueldner

Hi!

When I split an openapi.yaml like this...

openapi.yaml
... paths: /stuff: $ref: "./stuff/methods.yaml"

methods.yaml
get: tags: - stuff operationId: getStuff responses: "200": description: OK content: application/json: schema: type: string

...and set validateSpec=false compilation still says that methods.yaml is invalid because "Unrecognized token 'get'".

Additionally this is logged, which is not logged when omitting validateSpec=false:
Cannot invoke "io.swagger.v3.oas.models.OpenAPI.getExtensions()" because "openAPI" is null

Versions used:

quarkus-openapi-generator: 2.6.0-lts
Quarkus: 3.15.2
Java: 21
maven-compiler-plugin: 3.9.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clientThis item is related to the client extensionpinnedIssues and PRs that must not stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions