-
Notifications
You must be signed in to change notification settings - Fork 177
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
[Breaking Change] Cross-Version Runtime Exception: Data does not match any schemas from 'oneOf' (AutoRest v2 -> v3) #7278
Comments
More discussion of Key observation from Timothee Guerin about
|
Re the breaking change labelling issue in: Mike wrote:
Recall the failure was AutoRest error:
Per my comment here:
Because AutoRest invoked by Doc on AutoRest migration from v2 to v3: |
Additional context on Teams here about this PR: |
The Breaking Changes check in PR 26672 failed with a runtime exception with "ERROR: Schema violation: Data does not match any schemas from 'oneOf'.
The exception points to an "x-ms-example":
for an operation with a 202 response that includes an "Azure-AsyncOperation" and a "location" response header. And the example included both of these headers:
Through trial and error, I determined that the "location" header was causing the exception, and with a little more experimenting I found that the value had to be a URL. That makes sense, except that the OpenAPI only defined "location" as a "string". Strange!
Anyway, fixing the value of "location" in the example to be a valid URL fixed the runtime exception.
The text was updated successfully, but these errors were encountered: