Make sure we call validate on config schema API object.
This way we make sure config schema files are validated and we don't
allow bad or empty config schema files into the system.
@@ -187,6 +187,7 @@ class ResourceRegistrar(object):
content['attributes'] = values
config_schema_api = ConfigSchemaAPI(**content)
+ config_schema_api = config_schema_api.validate()
config_schema_db = ConfigSchemaAPI.to_model(config_schema_api)
try:
