Skip to content

Commit

Permalink
Fixed field.example validation (fixes frictionlessdata#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Jan 24, 2024
1 parent 3a8f8b8 commit 584c66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frictionless/schema/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def metadata_validate(cls, descriptor: IDescriptor): # type: ignore
type = descriptor.get("type")
Class = system.select_field_class(type)
field = Class(
name=descriptor.get("name"), format=descriptor.get("format", None) # type: ignore
name=descriptor.get("name"), format=descriptor.get("format", "default") # type: ignore
)
_, notes = field.read_cell(example)
if notes is not None:
Expand Down

0 comments on commit 584c66e

Please sign in to comment.