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