[TT-12238] Javascript regex issue on OAS API#7923
Conversation
|
API Changes no api changes detected |
|
This PR addresses an issue with how Javascript-style regular expressions containing unicode escape sequences (e.g., Files Changed Analysis
Architecture & Impact Assessment
OAS Regex Handling Flowgraph TD
subgraph Ingestion [API Definition Ingestion]
A["HTTP Request (Create/Update API) <br>w/ JS Regex \\u..."] --> B{extractOASObjFromReq};
C["API Definition File <br>w/ JS Regex \\u..."] --> D{loadDefFromFilePath};
E((In-Memory Cache <br> with RE2 Regex));
B --|Transform JS \\u to RE2 \\x(...)|--> E;
D --|Transform JS \\u to RE2 \\x(...)|--> E;
end
subgraph Egress [API Definition Egress]
F["HTTP Request (Get API)"] --> G{handleGetAPIOAS};
J["Write to File Trigger"] --> K{writeOASAndAPIDefToFile};
G --|1. Get from Cache|--> E;
E --|2. Clone Object|--> H[Cloned OAS Object];
H --|3. Restore RE2 \\x(...) to JS \\u|--> I["HTTP Response <br> w/ JS Regex \\u..."];
K --|1. Get from Cache|--> E;
E --|2. Clone Object|--> L[Cloned OAS Object];
L --|3. Restore RE2 \\x(...) to JS \\u|--> M["API Definition File <br> w/ JS Regex \\u..."];
end
Scope Discovery & Context Expansion
References
Metadata
Powered by Visor from Probelabs Last updated: 2026-04-16T05:20:59.079Z | Triggered by: pr_updated | Commit: be3b306 💡 TIP: You can chat with Visor using |
Security Issues (2)
✅ Architecture Check PassedNo architecture issues found – changes LGTM. Security Issues (2)
No architecture issues found – changes LGTM. \n\nPerformance Issues (2)
Quality Issues (2)
Powered by Visor from Probelabs Last updated: 2026-04-16T05:20:55.393Z | Triggered by: pr_updated | Commit: be3b306 💡 TIP: You can chat with Visor using |
|
/Visor ask Function |
…on-oas-api-gw-fix' into TT-12238-javascript-regex-issue-on-oas-api-gw-fix
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
|
|
/release to release-5.8 |
|
|



Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist