Skip to content

Commit

Permalink
Use correct JSON schema dialect for param validation (#15483)
Browse files Browse the repository at this point in the history
  • Loading branch information
GfxKai authored Sep 24, 2024
1 parent 3cdcf87 commit 9eed6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/_internal/schemas/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def validate_schema(schema: dict):
try:
if schema is not None:
# Most closely matches the schemas generated by pydantic
jsonschema.Draft4Validator.check_schema(schema)
jsonschema.Draft202012Validator.check_schema(schema)
except jsonschema.SchemaError as exc:
raise ValueError(
"The provided schema is not a valid json schema. Schema error:"
Expand Down

0 comments on commit 9eed6ad

Please sign in to comment.