Add identity-based access control, closes #51

Add a cli subcommand to verify config files validity
This commit is contained in:
Petu Eusebiu
2021-05-13 21:59:12 +03:00
committed by Ramkumar Chinchani
parent 26926ad4c2
commit 609d85d875
14 changed files with 915 additions and 51 deletions
+2 -2
View File
@@ -729,13 +729,13 @@ type swaggerInfo struct {
}
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = swaggerInfo{ Schemes: []string{}}
var SwaggerInfo = swaggerInfo{Schemes: []string{}}
type s struct{}
func (s *s) ReadDoc() string {
t, err := template.New("swagger_info").Funcs(template.FuncMap{
"marshal": func(v interface {}) string {
"marshal": func(v interface{}) string {
a, _ := json.Marshal(v)
return string(a)
},