cancel
Showing results for 
Search instead for 
Did you mean: 

Problem referencing component definitions from another spec in the same repo

Visitor

Problem referencing component definitions from another spec in the same repo

I'm trying to reference component from another spec in the same project/folder of my repository, but I'm getting errors like this one:

 

Resolver error at paths./participantInfo/{certificateNo}.get.responses.200.content.application/json.schema.properties.personnalInfoData.$ref

Could not resolve reference: Failed to fetch

 

Anyone knows if I can achieve this or whats wrong with my spec? 

 

components:
  schemas:   
    ParticipantData:
      type: object
      required:
        - personnalInfoData
        - policyProductData
        - holdingsData
      properties:
        personnalInfoData:
          $ref: 'https://git.ssq.local/projects/SSQAP/repos/ssq-api-spec/raw/rcu-api.yaml#/components/PersonnalInfoData'
        policyProductData:
          $ref: 'https://git.ssq.local/projects/SSQAP/repos/ssq-api-spec/raw/groupinsurance-policy-product.yaml#/components/PolicyProduct'
        holdingsData:
          type: array
          items:  
            $ref: 'https://git.ssq.local/projects/SSQAP/repos/ssq-api-spec/raw/groupinsurance-holding.yaml#/components/HoldingData'



Tags (2)
New Here?
Join us and watch the welcome video:
Join our online event
SeptemberHubBub
Top Kudoed Authors
Join the September Hub-bub to show off, learn and win