|
@@ -173,7 +173,7 @@ class MongodbHandler:
|
|
|
command = {
|
|
|
'collMod': collection_name,
|
|
|
'validator': {
|
|
|
- '$jsonSchema': parse_obj.schemas[0]
|
|
|
+ '$jsonSchema': parse_obj.load_and_parse_schema_for_mongodb(schema_path)
|
|
|
},
|
|
|
'validationLevel': validation_level,
|
|
|
'validationAction': validation_action
|