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

Switch to Draft7Validator #61

Merged
merged 1 commit into from
Jun 11, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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