Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Switch to Draft7Validator (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
koszti authored Jun 11, 2020
1 parent a7fed8b commit db5ffe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target_redshift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from tempfile import mkstemp

from joblib import Parallel, delayed, parallel_backend
from jsonschema import Draft4Validator, FormatChecker
from jsonschema import Draft7Validator, FormatChecker
from singer import get_logger
from itertools import islice

Expand Down Expand Up @@ -204,7 +204,7 @@ def persist_lines(config, lines, table_cache=None) -> None:
stream = o['stream']

schemas[stream] = float_to_decimal(o['schema'])
validators[stream] = Draft4Validator(schemas[stream], format_checker=FormatChecker())
validators[stream] = Draft7Validator(schemas[stream], format_checker=FormatChecker())

# flush records from previous stream SCHEMA
# if same stream has been encountered again, it means the schema might have been altered
Expand Down

0 comments on commit db5ffe4

Please sign in to comment.