Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove default for Types #140

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

vincentsarago
Copy link
Member

closes #121

This PR removes the default values for type in the Catalog and Collection model (per specification)

@vincentsarago vincentsarago requested a review from gadomski April 5, 2024 17:05
@@ -71,6 +71,7 @@ def test_schema(example_url, schema_url):

def test_api_landing_page():
LandingPage(
type="Catalog",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels weird to me but stac-pydantic says the landing page model is a Catalog, while I'm not sure to read this in the documentation

@vincentsarago vincentsarago enabled auto-merge April 5, 2024 19:26
@vincentsarago vincentsarago disabled auto-merge April 5, 2024 19:26
@vincentsarago vincentsarago enabled auto-merge April 5, 2024 19:26
@vincentsarago vincentsarago merged commit f682826 into stac-utils:main Apr 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests have invalid Collections and Catalogs
2 participants