OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.43k stars 6.48k forks source link

[BUG, Spring, JAVA]: $ref to external components is not generating code #18964

Open maxl2287 opened 3 months ago

maxl2287 commented 3 months ago
Description

I cannot generate my code when the specification is referencing to external components.

openapi-generator version

7.5.0

OpenAPI declaration file content or url
    SubscriptionDetail:
      description: The detail of the requested event subscription
      type: object
      required:
        - type
        - device
      properties:
        device:
          $ref: "https://raw.githubusercontent.com/maxl2287/<project>/draft/test-referencing-common-yaml/artifacts/common.yaml#/components/schemas/Device"
Generation Details
Errors: 
    -Unable to load URL ref: https://github.com/maxl2287/<project>/blob/draft/test-referencing-common-yaml/artifacts/CAMARA_common.yaml
maxl2287 commented 2 months ago

@wing328 do you have any idea?