Skip to content

Support Path Item references (OpenAPI 3.1 only) #128

Open
@petershaw

Description

@petershaw

A file that works in openapi generator does not work in openapi-generator. The section that causes the error is:

paths:
  /documents:
    $ref: './paths/documents.yaml#/documents'
  /documents/{document-ident}:
    $ref: './paths/documents.yaml#/documents-detail'

in the root file.

Error:

error: Inconsistency encountered when parsing `Vendor Extension` under the `/documents` path: Found at least one vendor extension property that does not begin with the required 'x-' prefix. Invalid properties: [ $ref ].

We always have our paths in separate files for various reasons. This never was a problem before so I think swift-openapi-generator should implement it. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/generatorAffects: plugin, CLI, config file.area/openapiAdding/updating a feature defined in OpenAPI.kind/enhancementImprovements to existing feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions