-
Notifications
You must be signed in to change notification settings - Fork 58
Fix proxy combining schemas due non-unqiue names generation #2076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Summary
|
fdd9073 to
aad7012
Compare
| } | ||
|
|
||
| private fun toOpenAPIURLPrefixMap(urls: List<String>): Map<String, String> { | ||
| val normalisedURL = urls.map { url -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelrosario, I didn't fully understand the previous logic, open to reverting if it was important or logical
| val newResponseBody = updateJsonPatternName(responseBody, newTypeName) | ||
| val newTypes = scenario.patterns[oldTypeName]?.let { | ||
| scenario.patterns.minus(oldTypeName).plus(newTypeName to it) | ||
| } ?: scenario.patterns |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this fallback required, is there a case we may be missing?
- Ensure proxy handles different request and response content-types as well as status code properly during conversion - Ensure non-deferred bodies are also handled properly
aad7012 to
887e1ae
Compare
What:
Checklist: