-
Notifications
You must be signed in to change notification settings - Fork 372
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
feat: new validation pipeline - schema existence validation #6645
Conversation
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.
bug to be triaged with new creation flow
const entries = Object.entries(schema.properties); | ||
for (const entry of entries) { | ||
const [propertyName, propertyDef] = entry; | ||
const { type, items } = propertyDef as any; |
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.
here causes the bug
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.
needs to check the schema definition
…t#6645) * add placeholder for schema validator * add schema validator pipeline with mocked fn * add schema visitor * display diagnostics data in debug panel * revert sdk.ts * decrease schema diagnostic severity to 'Warning' * optmize path join logic * impl a unified walker covers SwitchCondition * fix lint error: use BaseSchema * feat: disable actions without schema * wrap in useEffect * optimization: avoid frequent recoil submission * optimization: aggregate paths rather than updatedDialog to reduce time complexity * chore: comments & var name * lint * add comments Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
…icrosoft#6645)" (microsoft#6943) This reverts commit 9aa7733.
Description
When a $kind is not defined in sdk.schema, raise a diagnostic error in debug panel and disable this Action.
Task Item
closes #5996
refs #6526
Screenshots