Skip to content

Commit 790a0e8

Browse files
fixup! feat(manifest)!: implement feature-metadata RFC3416
1 parent af99add commit 790a0e8

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

crates/cargo-util-schemas/manifest.schema.json

+30-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@
5151
"null"
5252
],
5353
"additionalProperties": {
54-
"type": "array",
55-
"items": {
56-
"type": "string"
57-
}
54+
"$ref": "#/$defs/FeatureDefinition"
5855
}
5956
},
6057
"lib": {
@@ -597,6 +594,35 @@
597594
]
598595
},
599596
"TomlValue": true,
597+
"FeatureDefinition": {
598+
"anyOf": [
599+
{
600+
"type": "array",
601+
"items": {
602+
"type": "string"
603+
}
604+
},
605+
{
606+
"$ref": "#/$defs/FeatureMetadata"
607+
}
608+
]
609+
},
610+
"FeatureMetadata": {
611+
"description": "Metadata about a feature.",
612+
"type": "object",
613+
"properties": {
614+
"enables": {
615+
"description": "Features that this feature enables.",
616+
"type": "array",
617+
"items": {
618+
"type": "string"
619+
}
620+
}
621+
},
622+
"required": [
623+
"enables"
624+
]
625+
},
600626
"TomlTarget": {
601627
"type": "object",
602628
"properties": {

0 commit comments

Comments
 (0)