Skip to content

AI Assistant: Schema fix#33649

Merged
Raushen merged 1 commit into
DevExpress:26_1from
Raushen:AIAssistant-Schema-Fix
May 20, 2026
Merged

AI Assistant: Schema fix#33649
Raushen merged 1 commit into
DevExpress:26_1from
Raushen:AIAssistant-Schema-Fix

Conversation

@Raushen
Copy link
Copy Markdown
Contributor

@Raushen Raushen commented May 20, 2026

No description provided.

@Raushen Raushen self-assigned this May 20, 2026
Copilot AI review requested due to automatic review settings May 20, 2026 15:48
@Raushen Raushen requested a review from a team as a code owner May 20, 2026 15:48
@Raushen Raushen added the 26_1 label May 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Zod validation schema for the Grid AI Assistant selectByIndexes command to express the “1-based index” constraint using an inclusive minimum value.

Changes:

  • Adjusted selectByIndexes command schema to validate indexes with .min(1) instead of .positive() (while still requiring integers).


const selectByIndexesCommandSchema = z.object({
indexes: z.array(z.number().int().positive()).min(1),
indexes: z.array(z.number().int().min(1)).min(1),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, there no stub for positive method in zodStub, and tests failed because of that

@Raushen Raushen merged commit 5f2d993 into DevExpress:26_1 May 20, 2026
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants