Skip to content

Commit 338281e

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

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

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

+33-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,38 @@
597594
]
598595
},
599596
"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+
},
600629
"TomlTarget": {
601630
"type": "object",
602631
"properties": {

0 commit comments

Comments
 (0)