tyk
                                
                                 tyk copied to clipboard
                                
                                    tyk copied to clipboard
                            
                            
                            
                        [DX-1272]add documentation for generating the swagger
User description
This pull request contains :
- The new gateway swagger
- A new linter
- And a readme of how to generate the swagger .
.This provides the documentation on how you can generate the gateway Open Api specification. It contains a read me with all the steps to generate the OAS.
The OAS code is in this pr : https://github.com/TykTechnologies/tyk/pull/6123 DX-1272
Type
Documentation
Description
- Added a comprehensive README.md in the tyk-api-documentationdirectory.
- The documentation includes details on the version of OAS used, the tooling (Redocly), and the library (openapi-go) for OAS generation.
- Step-by-step instructions are provided for generating the Swagger.yml file using a make command in the specified repository branch.
- Describes the file structure within the Swagger directory, explaining the organization of files by OAS tags and the roles of various files in the generation process.
Changes walkthrough
| Relevant files | |||
|---|---|---|---|
| Documentation | 
 | 
✨ PR-Agent usage: Comment
/helpon the PR to get a list of all available PR-Agent tools and their descriptions
API Changes
no api changes detected
PR Description updated to latest commit (https://github.com/TykTechnologies/tyk/commit/06a05b022586d927cab69eb13032e7ade46bb04b)
PR Review
| ⏱️ Estimated effort to review [1-5] | 2, because the PR is primarily focused on adding documentation. The content is straightforward and mainly involves explaining the process and tools used for generating the Open API Specification. The complexity is low, and the main effort would be in verifying the accuracy of the instructions and the clarity of the documentation. | 
| 🧪 Relevant tests | No | 
| 🔍 Possible issues | Possible Typo: The sentence "It supports producing OASn for version 3. (Golang doesn't to many libraries to produce OAS three)" seems to contain a typo or grammatical error. It should be corrected for clarity. | 
| 🔒 Security concerns | No | 
Code feedback:
| relevant file | tyk-api-documentation/README.md | 
| suggestion | Consider correcting the grammatical error in the sentence about the  | 
| relevant line | 1. It supports producing OASn for version 3. (Golang doesn't to many libraries to produce OAS three) | 
✨ Review tool usage guide:
Overview:
The review tool scans the PR code changes, and generates a PR review which includes several types of feedbacks, such as possible PR issues, security threats and relevant test in the PR. More feedbacks can be added by configuring the tool.
The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
- When commenting, to edit configurations related to the review tool (pr_reviewersection), use the following template:
/review --pr_reviewer.some_config1=... --pr_reviewer.some_config2=...
- With a configuration file, use the following template:
[pr_reviewer]
some_config1=...
some_config2=...
See the review usage page for a comprehensive guide on using this tool.
PR Code Suggestions
| Category | Suggestions | 
| Enhancement | Correct a typo in the documentation.Correct the typo in the word "tehn" to "then" to improve the readability and  tyk-api-documentation/README.md [33]  | 
| Correct a grammatical error in the documentation.Correct the grammatical error in the phrase "Golang doesn't to many libraries to produce  tyk-api-documentation/README.md [15]  | |
| Clarify the command description and correct a typo.Clarify the description of the  tyk-api-documentation/README.md [27-28]  | |
| Maintainability | Remove redundant information in the documentation.Replace the repeated information about installing Redocly with a reference to the earlier  tyk-api-documentation/README.md [21]  | 
✨ Improve tool usage guide:
Overview:
The improve tool scans the PR code changes, and automatically generates suggestions for improving the PR code. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.
- When commenting, to edit configurations related to the improve tool (pr_code_suggestionssection), use the following template:
/improve --pr_code_suggestions.some_config1=... --pr_code_suggestions.some_config2=...
- With a configuration file, use the following template:
[pr_code_suggestions]
some_config1=...
some_config2=...
See the improve usage page for a comprehensive guide on using this tool.
Please retry analysis of this Pull-Request directly on SonarCloud
 Quality Gate passed
 Quality Gate passed
Issues
 0 New issues
 0 New issues
 0 Accepted issues
 0 Accepted issues
Measures
 0 Security Hotspots
 0 Security Hotspots
 No data about Coverage
 No data about Coverage
 0.0% Duplication on New Code
 0.0% Duplication on New Code
Swagger Changes
Changes in swagger.yml too large (line count 4303), check CI lint action for differences
 Quality Gate passed
 Quality Gate passed
Issues
 0 New issues
 0 New issues
 0 Accepted issues
 0 Accepted issues
Measures
 0 Security Hotspots
 0 Security Hotspots
 0.0% Coverage on New Code
 0.0% Coverage on New Code
 0.0% Duplication on New Code
 0.0% Duplication on New Code
/release to release-5.6
Working on it! Note that it can take a few minutes.
@titpetric Succesfully merged PR
/release to release-5.6.0
Working on it! Note that it can take a few minutes.
@titpetric Succesfully merged PR