Skip to content

Commit

Permalink
fix config schema to support config_templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Apr 20, 2018
1 parent f93c9ab commit 7a407e2
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,39 @@ func (c *configuration) ValidateConfigFile(configFilePath string) error {
},
"config_templates":{
"type": "object",
"additionalProperties":false
"patternProperties": {
"^[a-z0-9]*$":{
"type":"object",
"additionalProperties":false,
"required": ["filepath", "content"],
"properties": {
"filepath": {
"type": "string"
},
"content": {
"type": "string"
}
}
}
}
},
"extra_templates":{
"type": "object",
"additionalProperties":false
"patternProperties": {
"^[a-z0-9]*$":{
"type":"object",
"additionalProperties":false,
"required": ["filepath","content"],
"properties": {
"filepath": {
"type": "string"
},
"content": {
"type": "string"
}
}
}
}
}
}
}
Expand Down

0 comments on commit 7a407e2

Please sign in to comment.