* [pbs-devel] [PATCH proxmox-backup] api2/types: add type_text to DATASTORE_MAP_FORMAT
@ 2021-03-25 12:11 Dominik Csapak
0 siblings, 0 replies; only message in thread
From: Dominik Csapak @ 2021-03-25 12:11 UTC (permalink / raw)
To: pbs-devel
This way we get a better rendering in the api-viewer.
before:
[<string>, ... ]
after:
[(<source>=)?<target>, ... ]
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
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("(<source>=)?<target>")
.schema();
pub const DATASTORE_MAP_ARRAY_SCHEMA: Schema = ArraySchema::new(
--
2.20.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-25 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 12:11 [pbs-devel] [PATCH proxmox-backup] api2/types: add type_text to DATASTORE_MAP_FORMAT Dominik Csapak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox