Change parse_raw -> model_validate_json in api.py (#1354)

This commit is contained in:
Mathieu Tachon
2023-09-26 10:13:43 +02:00
committed by GitHub
parent 39e6ea2223
commit afda00e25e
+1 -1
View File
@@ -2057,7 +2057,7 @@ class API:
else:
LOGGER.debug('processing Elasticsearch CQL_JSON data')
try:
filter_ = CQLModel.parse_raw(data)
filter_ = CQLModel.model_validate_json(data)
except Exception as err:
LOGGER.error(err)
msg = f'Bad CQL string : {data}'