Skip to content

Fix Pydantic v2 issue, json_dumps has been removed #474

Open
@botanical

Description

@botanical

There is an issue with the STAC API apparent from the CloudWatch logs that we need to update our backend to not use json_dumps since that is no longer supported by Pydantic V2


/tmp/pip-target-jsvcgmwi/lib/python/pydantic/_internal/_config.py:373: UserWarning: Valid config keys have changed in V2: |  
-- | --


* 'json_dumps' has been removed

Relevant logs: https://us-west-2.console.aws.amazon.com/cloudwatch/home?region=us-west-2#logsV2:log-groups/log-group/$252Faws$252Flambda$252Fveda-backend-uah-dev-stacapilambdaCB4D003E-leON6KkcPRnP/log-events/2025$252F04$252F21$252F$255B$2524LATEST$255Dc720e65745de4976b2bd63e0fd1e9b62

Acceptance Criteria

model_config = ConfigDict(json_loads=orjson.loads, json_dumps=orjson_dumps)

The code in render.py is updated to no longer use deprecated parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions