Skip to content

ItemProperties modifies input data in place #130

@eseglem

Description

@eseglem

While trying to do some benchmarking I noticed that somehow the input datetime string was being modified in place when validating the model. Which was extremely confusing to me. I did some more testing and found this: https://github.com/stac-utils/stac-pydantic/blob/main/stac_pydantic/item.py#L38

It is modifying the input data before it gets to the pydantic validators, and doing extra validation within python when pydantic can handle it better / faster.

I will submit a related PR shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions