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:
Mafaldarc
2024-03-15 10:42:59 +00:00
committed by GitHub
parent 6171597fb9
commit 5c8f057db0
+1 -1
View File
@@ -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}'