Skip to content

Commit

Permalink
allow nested schema in parameter schema of paas service template (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvthongswansea authored Sep 18, 2024
1 parent 112d0e9 commit e5784bf
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit e5784bf

Please sign in to comment.