Forum Discussion

SJDFord's avatar
SJDFord
New Contributor
6 years ago

OpenApi3 Links

The new Links feature in OpenApi V3 look very promising, however I would like to be able to describe these links programmatically and have swagger automatically generate the api specification with links included. Is there any way to do this?

  • We actually don't have a library for C#/.NET documentation. You're probably using Swashbuckle or NSwag - neither is developed by us. Unfortunately, we don't know those projects well enough to assist in terms of how to use Links in them, so your best bet would be to file a ticket directly with the library you use.

  • Which development language and framework do you use? Do you use any library to document your definition inside the code already?

    • SJDFord's avatar
      SJDFord
      New Contributor

      We use C# and .NET. We currently use Swagger already to generate our api documentation. We couldn't find any documentation on how to define OpenApi3 Links however besides it's output (the documentation)

      • RonRatovsky's avatar
        RonRatovsky
        Staff

        We actually don't have a library for C#/.NET documentation. You're probably using Swashbuckle or NSwag - neither is developed by us. Unfortunately, we don't know those projects well enough to assist in terms of how to use Links in them, so your best bet would be to file a ticket directly with the library you use.