File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pkgs/dart_mcp_server/lib/src/mixins Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -766,19 +766,21 @@ base mixin DartToolingDaemonSupport
766766 'Value should be a nested finder for the descendent or ancestor' ,
767767 additionalProperties: true ,
768768 ),
769- 'matchRoot' : Schema .object (
769+ // This is a boolean but uses the `true` and `false` strings.
770+ 'matchRoot' : Schema .enumeration (
770771 description:
771772 'Required by the Descendent and Ancestor finders. '
772773 'Whether the widget matching `of` will be considered for a '
773774 'match' ,
774- additionalProperties : true ,
775+ values : [ ' true' , 'false' ] ,
775776 ),
776- 'firstMatchOnly' : Schema .object (
777+ // This is a boolean but uses the `true` and `false` strings.
778+ 'firstMatchOnly' : Schema .enumeration (
777779 description:
778780 'Required by the Descendent and Ancestor finders. '
779781 'If true then only the first ancestor or descendent matching '
780782 '`matching` will be returned.' ,
781- additionalProperties : true ,
783+ values : [ ' true' , 'false' ] ,
782784 ),
783785 'action' : Schema .enumeration (
784786 description:
You can’t perform that action at this time.
0 commit comments