Conversation
|
API Changes --- prev.txt 2025-11-11 10:25:19.915935897 +0000
+++ current.txt 2025-11-11 10:25:10.305930188 +0000
@@ -3779,6 +3779,17 @@
func (s *OAS) Fill(api apidef.APIDefinition)
Fill fills *OAS definition from apidef.APIDefinition.
+func (s *OAS) GenerateTykServers(
+ apiData *apidef.APIDefinition,
+ baseAPI *apidef.APIDefinition,
+ config ServerRegenerationConfig,
+ versionName string,
+) []*openapi3.Server
+ GenerateTykServers generates and returns only Tyk-managed server URLs for an
+ API. This is a convenience method that generates servers without modifying
+ the OAS spec. Unlike RegenerateServers, this does not include user-defined
+ servers and does not modify the OAS servers array.
+
func (s *OAS) GetJWTConfiguration() *JWT
func (s *OAS) GetTykExtension() *XTykAPIGateway |
🔍 Code Analysis ResultsThis PR introduces a new exported function Files Changed Analysis
Architecture & Impact Assessment
This can be visualized as follows: sequenceDiagram
participant Dashboard API
participant Tyk Gateway
Dashboard API->>Tyk Gateway: Call GenerateTykServers(apiDef, config)
note right of Tyk Gateway: Reuses internal logic for<br/>URL generation (versioning, domains, etc.)
Tyk Gateway-->>Dashboard API: Return []*openapi3.Server
Scope Discovery & Context ExpansionThe change is well-contained within the Metadata
Powered by Visor from Probelabs Last updated: 2025-11-11T10:27:22.375Z | Triggered by: opened | Commit: 6096269 💡 TIP: You can chat with Visor using |
🔍 Code Analysis ResultsSecurity Issues (1)
Architecture Issues (1)
✅ Performance Check PassedNo performance issues found – changes LGTM. Quality Issues (1)
✅ Dependency Check PassedNo dependency issues found – changes LGTM. ✅ Connectivity Check PassedNo connectivity issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2025-11-11T10:27:23.854Z | Triggered by: opened | Commit: 6096269 💡 TIP: You can chat with Visor using |
|
|
The failing tests are because I have a PR on tyk-analytics with same branch name https://github.com/TykTechnologies/tyk-analytics/pull/5030, but this is not a breaking change so I'll merge so go.mod gets updated |



Description
Exposese
GenerateTykServersso that Dashboard can use it when generating the tyk OAS urls and return them via /api/apis/oas/{:apiId}/urls implemented here https://github.com/TykTechnologies/tyk-analytics/pull/5030Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
Ticket Details
TT-16109
Generated at: 2025-11-11 12:05:08