mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-11 07:13:45 +00:00
* Change exception into warning, add strict_version param, and remove compatibility between schemas * Simplify update_json_schema * Rename unstable into master * Prevent validate_config from changing the config to validate * Fix version validation and add tests * Rename master into ignore * Complete parameter rename Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
12 lines
278 B
Python
12 lines
278 B
Python
import sys
|
|
import logging
|
|
from pathlib import Path
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
|
|
sys.path.append(".")
|
|
from haystack.nodes._json_schema import update_json_schema
|
|
|
|
update_json_schema(destination_path=Path(__file__).parent.parent.parent / "haystack" / "json-schemas")
|