From df953c46180ca32e01d7c13bea9df4783659d237 Mon Sep 17 00:00:00 2001 From: Van Thong Nguyen Date: Wed, 18 Sep 2024 12:18:11 +0200 Subject: [PATCH] allow nested schema in parameter schema of paas service template --- paas.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/paas.go b/paas.go index 17b0aff..1f6aa3b 100644 --- a/paas.go +++ b/paas.go @@ -295,6 +295,18 @@ type Parameter struct { // Immutable. Immutable bool `json:"immutable"` + + // Nested schema + Schema Schema `json:"schema"` +} + +// Schema represents the structure of a nested parameter. +type Schema struct { + // Type of the schema. + Type string `json:"type"` + + // If the type is "dict", this defines the schema of the dictionary fields. + Schema map[string]Parameter `json:"schema"` } // Resource represents the amount of concurrent connections for the service.