Skip to content
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] ERROR: Schema violation: Data does not match any schemas from 'oneOf' #6036

Closed
konrad-jamrozik opened this issue Apr 24, 2023 · 5 comments
Assignees
Labels
Breaking Changes Improvements to Breaking Changes tooling bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.

Comments

@konrad-jamrozik
Copy link
Contributor

konrad-jamrozik commented Apr 24, 2023

@konrad-jamrozik konrad-jamrozik added Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo. labels Apr 24, 2023
@konrad-jamrozik konrad-jamrozik self-assigned this Apr 24, 2023
@konrad-jamrozik konrad-jamrozik added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Apr 24, 2023
@konrad-jamrozik konrad-jamrozik changed the title Swagger BreakingChange validation failure with runtime exception: Error: [OperationAbortedException] Error occurred. [Breaking Change] Swagger BreakingChange validation failure with runtime exception: Error: [OperationAbortedException] Error occurred. May 12, 2023
@mikekistler mikekistler added the Breaking Changes Improvements to Breaking Changes tooling label Jun 19, 2023
@konrad-jamrozik konrad-jamrozik changed the title [Breaking Change] Swagger BreakingChange validation failure with runtime exception: Error: [OperationAbortedException] Error occurred. [Breaking Change] ERROR: Schema violation: Data does not match any schemas from 'oneOf' Sep 26, 2023
@konrad-jamrozik konrad-jamrozik changed the title [Breaking Change] ERROR: Schema violation: Data does not match any schemas from 'oneOf' [Breaking Change] ERROR: Schema violation: Data does not match any schemas from 'oneOf' Sep 26, 2023
@konrad-jamrozik
Copy link
Contributor Author

konrad-jamrozik commented Sep 26, 2023

Recent occurrence I pulled from Kusto:

2023-09-21T23:55:08.6983818Z oad error log: [{
        "type": "Raw",
        "level": "Error",
        "message": "Runtime Exception",
        "time": "2023-09-21T23:55:08.697Z",
        "groupName": "stable",
        "extra": {
            "new": "https://github.com/Azure/azure-rest-api-specs-pr/blob/6eca7ec9dbb076b5dbfa5fdeec4425edca6705ab/specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json",
            "old": "https://github.com/Azure/azure-rest-api-specs-pr/blob/RPSaaSMaster/specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json",
            "details": "Command failed: node \"/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.59/common/temp/node_modules/.pnpm/@[email protected]/node_modules/autorest/dist/app.js\" --v2 --input-file=specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp\nERROR: Schema violation: Data does not match any schemas from 'oneOf'\n    - file:///mnt/vss/_work/1/azure-rest-api-specs-pr/specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json:244:10 ($.paths[\"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/sessionManagementFunctions/{sessionManagementFunctionName}\"].patch[\"x-ms-examples\"][\"Update tags for session management function resource\"])\nFATAL: swagger-document/individual/schema-validator - FAIL"
        }
    }
]

"details": "Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.59/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/autorest/dist/app.js" --v2 --input-file=specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp\nERROR: Schema violation: Data does not match any schemas from 'oneOf'\n - file:///mnt/vss/_work/1/azure-rest-api-specs-pr/specification/hybridnetwork/resource-manager/Microsoft.HybridNetwork/preview/2020-01-01-preview/sessionManagementFunctions.json:244:10 ($.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/sessionManagementFunctions/{sessionManagementFunctionName}"].patch["x-ms-examples"]["Update tags for session management function resource"])\nFATAL: swagger-document/individual/schema-validator - FAIL"

@konrad-jamrozik
Copy link
Contributor Author

For analysis of runtime error buckets, see:

@konrad-jamrozik
Copy link
Contributor Author

Addressed by:

  • Pull Request 500754: Implement support for pretty-printing runtime errors originating from AutoRest invocation from within OAD (breaking change detector)

@konrad-jamrozik
Copy link
Contributor Author

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 bug This issue requires a change to an existing behavior in the product in order to be resolved. Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.
Projects
Archived in project
Status: 🎊 Closed
Development

No branches or pull requests

2 participants