File tree 1 file changed +33
-4
lines changed
crates/cargo-util-schemas
1 file changed +33
-4
lines changed Original file line number Diff line number Diff line change 51
51
" null"
52
52
],
53
53
"additionalProperties" : {
54
- "type" : " array" ,
55
- "items" : {
56
- "type" : " string"
57
- }
54
+ "$ref" : " #/$defs/FeatureDefinition"
58
55
}
59
56
},
60
57
"lib" : {
597
594
]
598
595
},
599
596
"TomlValue" : true ,
597
+ "FeatureDefinition" : {
598
+ "description" : " Definition of a feature." ,
599
+ "anyOf" : [
600
+ {
601
+ "description" : " Features that this feature enables." ,
602
+ "type" : " array" ,
603
+ "items" : {
604
+ "type" : " string"
605
+ }
606
+ },
607
+ {
608
+ "description" : " Metadata of this feature." ,
609
+ "$ref" : " #/$defs/FeatureMetadata"
610
+ }
611
+ ]
612
+ },
613
+ "FeatureMetadata" : {
614
+ "description" : " Metadata of a feature." ,
615
+ "type" : " object" ,
616
+ "properties" : {
617
+ "enables" : {
618
+ "description" : " Features that this feature enables." ,
619
+ "type" : " array" ,
620
+ "items" : {
621
+ "type" : " string"
622
+ }
623
+ }
624
+ },
625
+ "required" : [
626
+ " enables"
627
+ ]
628
+ },
600
629
"TomlTarget" : {
601
630
"type" : " object" ,
602
631
"properties" : {
You can’t perform that action at this time.
0 commit comments