Skip to content

Provide consistent ordering of JSON contents from stac_model #96

@fmigneault

Description

@fmigneault

🚀 Feature Request

As referenced in crim-ca/mlm-extension#41 (comment), it would be useful if JSON contents generated from the various BaseModel.model_dump calls of stac_model/pydantic classes were ordered in a consistent fashion.

This does not impact the parsing of the JSON regardless. It is purely for consistency and readability reasons of property ordering.

🔉 Motivation

Avoid varying output order for certain JSON files auto-generated, such that we do not cause unnecessary diffs. Also, having a consistent order of properties will improve the readability of the examples. For example, it is better to be made aware of applicable stac_extensions for a given STAC Item before reading any other properties under it.

📡 Alternatives

n/a

📎 Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststac-modelIssues specifically related to the utility Python package.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions