From 93fb2e0d21cd45295e7980e1d72c0af90f97bde7 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 25 Mar 2021 13:11:23 +0100 Subject: [PATCH] api2/types: add type_text to DATASTORE_MAP_FORMAT This way we get a better rendering in the api-viewer. before: [, ... ] after: [(=)?, ... ] Signed-off-by: Dominik Csapak --- src/api2/types/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api2/types/mod.rs b/src/api2/types/mod.rs index 80db98fc..1bd4f92a 100644 --- a/src/api2/types/mod.rs +++ b/src/api2/types/mod.rs @@ -365,6 +365,7 @@ pub const DATASTORE_MAP_SCHEMA: Schema = StringSchema::new("Datastore mapping.") .format(&DATASTORE_MAP_FORMAT) .min_length(3) .max_length(65) + .type_text("(=)?") .schema(); pub const DATASTORE_MAP_ARRAY_SCHEMA: Schema = ArraySchema::new(