Add some checking for the presence of the same key twice.

This commit is contained in:
Brendan Burns
2016-10-13 21:58:44 -07:00
parent a5ec367c30
commit d9d06f6680
3 changed files with 185 additions and 1 deletions

View File

@@ -762,10 +762,14 @@ func (f *factory) Validator(validate bool, cacheDir string) (validation.Schema,
if err != nil {
return nil, err
}
return &clientSwaggerSchema{
swaggerSchema := &clientSwaggerSchema{
c: restclient,
fedc: fedClient,
cacheDir: dir,
}
return validation.ConjunctiveSchema{
swaggerSchema,
validation.NoDoubleKeySchema{},
}, nil
}
return validation.NullSchema{}, nil