File tree 1 file changed +19
-8
lines changed
1 file changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,25 @@ export const categoryConfigSchema = scorableSchema(
31
31
) ,
32
32
getDuplicateRefsInCategoryMetrics ,
33
33
duplicateRefsInCategoryMetricsErrorMsg ,
34
- ) . merge (
35
- metaSchema ( {
36
- titleDescription : 'Category Title' ,
37
- docsUrlDescription : 'Category docs RUL' ,
38
- descriptionDescription : 'Category description' ,
39
- description : 'Meta info for category' ,
40
- } ) ,
41
- ) ;
34
+ )
35
+ . merge (
36
+ metaSchema ( {
37
+ titleDescription : 'Category Title' ,
38
+ docsUrlDescription : 'Category docs RUL' ,
39
+ descriptionDescription : 'Category description' ,
40
+ description : 'Meta info for category' ,
41
+ } ) ,
42
+ )
43
+ . merge (
44
+ z . object ( {
45
+ isBinary : z
46
+ . boolean ( {
47
+ description :
48
+ 'Is this a binary category (i.e. only a perfect score considered a "pass")?' ,
49
+ } )
50
+ . optional ( ) ,
51
+ } ) ,
52
+ ) ;
42
53
43
54
export type CategoryConfig = z . infer < typeof categoryConfigSchema > ;
44
55
You can’t perform that action at this time.
0 commit comments