MCPcopy Create free account
hub / github.com/codeaashu/claude-code / validateRequired

Function validateRequired

src/components/mcp/ElicitationDialog.tsx:731–743  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

729 isActive: true
730 });
731 function validateRequired(): boolean {
732 const requiredFields_1 = requestedSchema.required || [];
733 for (const fieldName_8 of requiredFields_1) {
734 const value_2 = formValues[fieldName_8];
735 if (value_2 === undefined || value_2 === null || value_2 === '') {
736 return false;
737 }
738 if (Array.isArray(value_2) && value_2.length === 0) {
739 return false;
740 }
741 }
742 return true;
743 }
744
745 // Scroll windowing: compute visible field range
746 // Overhead: ~9 lines (dialog chrome, buttons, footer).

Callers 1

ElicitationFormDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected