Manifest: add options limit to manifest extra prop
@@ -26,6 +26,13 @@ impl ManifestResource {
// Extra descriptors
// those define the extra properties that may be passed for a catalog
+#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
+struct OptionsLimit(u32);
+impl Default for OptionsLimit {
+ fn default() -> OptionsLimit {
+ OptionsLimit(1)
+ }
+}
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ManifestExtraProp {
@@ -33,6 +40,8 @@ pub struct ManifestExtraProp {
#[serde(default)]
is_required: bool,
options: Option<Vec<String>>,
+ #[serde(default)]
+ options_limit: OptionsLimit,
}
#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
#[serde(untagged)]
