Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow nested schema in parameter schema of paas service template #236

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions paas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading