Revert pydantic method 'model_validate_json' to v1 version (#1596)
Fix bug when trying to process Elasticsearch CQL_JSON data on post_collection_items Use method 'parse_raw' from v1 instead 'model_validate_json'
This commit is contained in:
+1
-1
@@ -2270,7 +2270,7 @@ class API:
|
||||
else:
|
||||
LOGGER.debug('processing Elasticsearch CQL_JSON data')
|
||||
try:
|
||||
filter_ = CQLModel.model_validate_json(data)
|
||||
filter_ = CQLModel.parse_raw(data)
|
||||
except Exception as err:
|
||||
LOGGER.error(err)
|
||||
msg = f'Bad CQL string : {data}'
|
||||
|
||||
Reference in New Issue
Block a user