-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable EduSharingTypeValidationPipeline
- the new edu-sharing API client does rigorous Type-Checks before submitting items to the repository, which causes pydantic "ValidationError"s for some metadata properties which haven't been normalized previously - example 1: when a crawler collects a set[str] of keywords (to prevent duplicate entries), the pipeline will convert the set[str] to a list[str] before trying to submit it via the REST API - example 2: time- or age-related properties (e.g. "typicalLearningTime", "typicalAgeRange") might cause ValidationErrors when the crawler collects these values as Integers, but the edu-sharing API expects the value to be wrapped in a string - (this pipeline will be expanded over time as more edge-cases arise)
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters