openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

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

Open maxl2287 opened this issue 8 months ago • 1 comments

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 avatar Jun 18 '24 08:06 maxl2287