Skip to content

Commit

Permalink
fix: mapped schema types in validation (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney authored Apr 11, 2024
1 parent 91702a2 commit 3902233
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blurry/schema_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def validate_front_matter_as_schema(

schema_type = front_matter["@type"]

if mapped_schema_type := SETTINGS["TEMPLATE_SCHEMA_TYPES"].get(schema_type):
schema_type = mapped_schema_type

# Import pydantic_schemaorg model
try:
pydantic_schemaorg_model_module = importlib.import_module(
Expand Down

0 comments on commit 3902233

Please sign in to comment.