Forum Discussion

gpatenaude's avatar
gpatenaude
Visitor
6 years ago

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'



No RepliesBe the first to reply