Forum Discussion

stuften-sfg's avatar
stuften-sfg
Occasional Contributor
2 years ago

$ref (erencing) a valid OAS3 domain file not working

I have a Domain defined in OAS3 of 472 code lists containing 14,456 code values(enums).

I'm trying to reference this from my API spec which is validating correctly except for this one $ref defined in the following format as recommended at the following support page...

https://support.smartbear.com/swaggerhub/docs/domains/referencing-domain.html

 

 

 

 

components:
  schemas:
      transactionTypeCode:
        $ref: 'https://api.swaggerhub.com/domains/OWNER/DOMAIN/VERSION#/components/TYPE/COMPONENT_NAME'

 

 

 

When I enter ...

https://app.swaggerhub.com/domains/OWNER/DOMAIN/VERSION#/components/TYPE/COMPONENT_NAME

into the browser it correctly jumps into the domain to the component defined .

 

I thought maybe the size of the domain may be an issue since swagger is slow at validating so I pulled out just one schema component into its own domain, referenced just that one and still have the same error when validating the referencing API.

 

Any help most appreciated!

5 Replies