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

Overhaul schema validation #121

Merged
merged 5 commits into from
Jan 16, 2025
Merged

Overhaul schema validation #121

merged 5 commits into from
Jan 16, 2025

Conversation

johnfraney
Copy link
Contributor

Overhauls schema validation to use custom-coded Schema.org types rather than https://github.com/blurry-dev/pydantic2-schemaorg/.

Performance of pydantic2-schemaorg was slow and the code was tricky to maintain. The approach of this PR is to focus on Schema.org types that Google uses for rich search results, which is the main benefit of this feature.

Not all schema types and fields are finished, but this is a good start. See here for the Google docs on their supported schema types:

https://developers.google.com/search/docs/appearance/structured-data/search-gallery

@johnfraney johnfraney merged commit 7674066 into main Jan 16, 2025
4 checks passed
@johnfraney johnfraney deleted the rework-schema-validation branch January 16, 2025 20:58
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.

1 participant