Skip to content

Commit fc3c98b

Browse files
committed
fix logic for warning
1 parent 1ba98e8 commit fc3c98b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schematic/schemas/create_json_schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def _get_validation_rule_based_fields(
293293
f"that conflicts with the implicit type: '{implicit_js_type}' "
294294
f"derived from its validation rules: {validation_rules}"
295295
)
296-
raise ValueError(msg)
297-
if implicit_js_type:
296+
warnings.warn(msg)
297+
if not explicit_js_type and implicit_js_type:
298298
js_type = implicit_js_type
299299
msg = (
300300
f"No explicit type set for property: '{name}', "

0 commit comments

Comments
 (0)