Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package JSON schemas properly in Haystack #2316

Merged
merged 14 commits into from
Mar 15, 2022
Merged
4 changes: 2 additions & 2 deletions haystack/nodes/_json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
from haystack.nodes.base import BaseComponent


JSON_SCHEMAS_PATH = Path(__file__).parent.parent.parent / "json-schemas"
SCHEMA_URL = "https://haystack.deepset.ai/json-schemas/"
JSON_SCHEMAS_PATH = Path(__file__).parent.parent.parent / "haystack" / "json-schemas"
SCHEMA_URL = "https://haystack.deepset.ai/haystack/json-schemas/"

# Allows accessory classes (like enums and helpers) to be registered as valid input for
# custom node's init parameters. For now we disable this feature, but flipping this variables
Expand Down
7 changes: 5 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ exclude =
test*
tutorials*
ui*
include =
json-schemas


[options.package_data]
haystack =
json-schemas/*.schema.json


[options.extras_require]
Expand Down