geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
490 stars 260 forks source link

Revert pydantic method 'model_validate_json' to v1 version #1596

Closed Mafaldarc closed 6 months ago

Mafaldarc commented 6 months ago

Overview

Fix bug when trying to process Elasticsearch CQL_JSON data on post_collection_items(), since it was using a method from pydantic v2.

Use method 'parse_raw' from pydantic v1 instead of 'model_validate_json'

Related Issue / discussion

Additional information

Dependency policy (RFC2)

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)