DEV: Add license field to api docs info section (#14248)

DEV: Add license field to api docs info section (#14248)

One of the fields that should be present for openapi docs is the “license” field.

OpenAPI Specification v3.1.0 | Introduction, Definitions, & More

Our API docs already had a license, so this commit just specifies that and provides a link to it.

diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb
index 13821cd..85cec5a 100644
--- a/spec/swagger_helper.rb
+++ b/spec/swagger_helper.rb
@@ -95,7 +95,11 @@ RSpec.configure do |config|
           url: 'https://discourse-meta.s3-us-west-1.amazonaws.com/optimized/3X/9/d/9d543e92b15b06924249654667a81441a55867eb_1_690x184.png',
         },
         version: 'latest',
-        description: api_docs_description
+        description: api_docs_description,
+        license: {
+          name: 'MIT',
+          url: 'https://docs.discourse.org/LICENSE.txt'
+        }
       },
       paths: {},
       servers: [

GitHub sha: d500c436c6fdf63161f935b1acee579a162523a3

This commit appears in #14248 which was approved by CvX. It was merged by blake.