From e244b9d03d3cdc354e9e093190ea8a2c240fd884 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 25 Mar 2021 11:04:41 +0100 Subject: [PATCH] api2/types: expand DATASTORE_MAP_LIST_SCHEMA description and give an example Signed-off-by: Dominik Csapak --- src/api2/types/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api2/types/mod.rs b/src/api2/types/mod.rs index fb7ba816..80db98fc 100644 --- a/src/api2/types/mod.rs +++ b/src/api2/types/mod.rs @@ -372,7 +372,10 @@ pub const DATASTORE_MAP_ARRAY_SCHEMA: Schema = ArraySchema::new( .schema(); pub const DATASTORE_MAP_LIST_SCHEMA: Schema = StringSchema::new( - "A list of Datastore mappings (or single datastore), comma separated.") + "A list of Datastore mappings (or single datastore), comma separated. \ + For example 'a=b,e' maps the source datastore 'a' to target 'b and \ + all other sources to the default 'e'. If no default is given, only the \ + specified sources are mapped.") .format(&ApiStringFormat::PropertyString(&DATASTORE_MAP_ARRAY_SCHEMA)) .schema();