Forum Discussion

WilliamWilliams's avatar
WilliamWilliams
Occasional Contributor
2 years ago
Solved

Looking for an example using a Domain defined Response

The page at OpenAPI 3.0 Domain Example | SwaggerHub Documentation (smartbear.com) shows how to define responses in the Domain, but my attempts at referencing them in my endpoint are failing.  Is ther...
  • chichepo's avatar
    2 years ago

    WilliamWilliams 

    I played a little with your example and got this construction:

    API StructureDomain

     

     

     

    Be careful to the ref url:
    $ref: 'https://api.swaggerhub.com/domains/chichepo/MyAPIDomain/1.0.0#/components/responses/200'