Skip to content

Commit

Permalink
[#27] removing source meta related validators
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Jan 18, 2022
1 parent 4fff842 commit a9b3805
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions hsmodels/schemas/rdf/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
from hsmodels.schemas.languages_iso import languages


def parse_rdf_sources(cls, value):
if len(value) > 0 and isinstance(value[0], str):
return [{"is_derived_from": v} for v in value]
return value


def rdf_parse_extended_metadata(cls, value):
from hsmodels.schemas.rdf.fields import ExtendedMetadataInRDF

Expand Down
6 changes: 0 additions & 6 deletions hsmodels/schemas/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ def parse_identifier(cls, value):
return value


def parse_sources(cls, value):
if len(value) > 0 and isinstance(value[0], dict):
return [f['is_derived_from'] for f in value]
return value


def parse_spatial_coverage(cls, value):
# This is a workaround for form submissions that do not include type
if isinstance(value, dict) and "type" not in value:
Expand Down

0 comments on commit a9b3805

Please sign in to comment.