Skip to content

Conversation

@jenningsanderson
Copy link
Collaborator

This is a proof-of-concept of what an Overture Schema Extension might look like.

Putting it here because it requires the pydantic schema, but in the future, it likely belongs in its own repo.

@jenningsanderson jenningsanderson changed the base branch from dev to pydantic November 18, 2025 14:47

1. Inherit from `Identified` to get the `id` field (instead of full `OvertureFeature`)
2. Add custom fields with proper annotations and descriptions
3. Create supporting models with `@no_extra_fields` decorator
Copy link
Contributor

@danabauer danabauer Nov 26, 2025

Choose a reason for hiding this comment

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

the name for this decorator -- @no_extra_fields -- could be confusing for builders. Are we asking them to make clear which properties are core? I can address this in the main Pydantic packages for schema

] = None


class PlaceWithOperatingHours(Place):
Copy link
Contributor

Choose a reason for hiding this comment

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

why are you not using the @no_extra_fields decorator here?

@jenningsanderson jenningsanderson changed the base branch from pydantic to dev November 26, 2025 18:45
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.

3 participants