Skip to content

Refactor to use Enums consistently in PySTAC #231

@lossyrob

Description

@lossyrob

Currently, things like CatalogType, LinkType etc are not enums but constants held in a class. In other places like the SAR extension, we use Enums.

We should be consistent about our usage of enums across the library.

Note that moving from constants to enums would be a pretty big API break, potentially requiring a lot of client code changes. If we were to make that decision, it might be best to provide upgrade scripts to ease some of that API breakage pain.

If you have an opinion on whether or not Enums should be used across the library, please use this issue to voice it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    best practiceIssues that should be addressed for compliance with best practices, but that aren't technically bugsdiscussionAn issue to capture a discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions