-
Notifications
You must be signed in to change notification settings - Fork 186
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] Misleading error message: Runtime exception: ERROR: Schema violation: Data does not match any schemas from 'oneOf'
#6998
Labels
Breaking Changes
Improvements to Breaking Changes tooling
Central-EngSys
This issue is owned by the Engineering System team.
Spec PR Tools
Tooling that runs in azure-rest-api-specs repo.
Comments
3 tasks
This was referenced Sep 20, 2023
Closed
Runtime exception: ERROR: Schema violation: Data does not match any schemas from 'oneOf'
For analysis of runtime error buckets, see: |
Addressed by:
|
New Teams discussion here. |
This is how one can read the AutoRest runtime messages now: The above comes from: |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Breaking Changes
Improvements to Breaking Changes tooling
Central-EngSys
This issue is owned by the Engineering System team.
Spec PR Tools
Tooling that runs in azure-rest-api-specs repo.
ERROR: Schema violation: Data does not match any schemas from 'oneOf'
Related work:
ERROR: Schema violation: Data does not match any schemas from 'oneOf'
#6036Investigation
Error message in the check run says:
Notably it says:
In the new spec file we can see:
The
347:10
location given in error message points to"NamespaceFailOver": {
.In the old spec file we can see
Looks like in the case of old spec the
x-ms-examples
had an entry forNameSpaceCreate
and there wasSBNameSpaceCreate.json
example.However, in the case of the new spec the
x-ms-examples
has an entry forNamespaceFailOver
while there isSBNamespaceFailover.json
example. The problem here appears to be the casing mismatch:NamespaceFailOver
vsNamespaceFailover
.If this is not the root-cause, then maybe the contents of the SBNamespaceFailover.json does not adhere to the schema.
If none of the above are the root-cause, then an investigation by OpenAPI spec SME would help here.
Update 2023-09-20 11:59 PM PST
See this Teams discussion
Reference
x-ms-examples
in AutoRest docsx-ms-examples
in specs repo docsx-ms-examples
schemaThe text was updated successfully, but these errors were encountered: