mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-02 12:53:52 +00:00
chore: bump release number for unstable version (#3251)
* bump version for unstable * allow generation of rc schemas * update schemas
This commit is contained in:
parent
938e6fda5b
commit
8f76d64f6f
@ -1 +1 @@
|
||||
1.8.1rc0
|
||||
1.10.0rc0
|
||||
|
1028
docs/_src/api/openapi/openapi-1.10.0rc0.json
Normal file
1028
docs/_src/api/openapi/openapi-1.10.0rc0.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.2",
|
||||
"info": {
|
||||
"title": "Haystack REST API",
|
||||
"version": "1.8.1rc0"
|
||||
"version": "1.10.0rc0"
|
||||
},
|
||||
"paths": {
|
||||
"/initialized": {
|
||||
|
6418
haystack/json-schemas/haystack-pipeline-1.10.0rc0.schema.json
Normal file
6418
haystack/json-schemas/haystack-pipeline-1.10.0rc0.schema.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -214,6 +214,20 @@
|
||||
"$ref": "https://raw.githubusercontent.com/deepset-ai/haystack/main/haystack/json-schemas/haystack-pipeline-1.8.0.schema.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"allOf": [
|
||||
{
|
||||
"properties": {
|
||||
"version": {
|
||||
"const": "1.10.0rc0"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/deepset-ai/haystack/main/haystack/json-schemas/haystack-pipeline-1.10.0rc0.schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -406,36 +406,33 @@ def inject_definition_in_schema(node_class: Type[BaseComponent], schema: Dict[st
|
||||
|
||||
def update_json_schema(destination_path: Path = JSON_SCHEMAS_PATH):
|
||||
"""
|
||||
If the version contains "rc", only update main's schema.
|
||||
Otherwise, create (or update) a new schema.
|
||||
Create (or update) a new schema.
|
||||
"""
|
||||
# Update mains's schema
|
||||
# `main` schema is always updated and will contain the same data as the latest
|
||||
# commit from `main` or a release branch
|
||||
filename = f"haystack-pipeline-main.schema.json"
|
||||
with open(destination_path / filename, "w") as json_file:
|
||||
json.dump(get_json_schema(filename=filename, version="ignore"), json_file, indent=2)
|
||||
|
||||
# If it's not an rc version:
|
||||
if "rc" not in haystack_version:
|
||||
# Create/update the specific version file too
|
||||
filename = f"haystack-pipeline-{haystack_version}.schema.json"
|
||||
with open(destination_path / filename, "w") as json_file:
|
||||
json.dump(get_json_schema(filename=filename, version=haystack_version), json_file, indent=2)
|
||||
|
||||
# Create/update the specific version file too
|
||||
filename = f"haystack-pipeline-{haystack_version}.schema.json"
|
||||
with open(destination_path / filename, "w") as json_file:
|
||||
json.dump(get_json_schema(filename=filename, version=haystack_version), json_file, indent=2)
|
||||
|
||||
# Update the index
|
||||
index_name = "haystack-pipeline.schema.json"
|
||||
with open(destination_path / index_name, "r") as json_file:
|
||||
index = json.load(json_file)
|
||||
new_entry = {
|
||||
"allOf": [
|
||||
{"properties": {"version": {"const": haystack_version}}},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/deepset-ai/haystack/main/haystack/json-schemas/"
|
||||
f"haystack-pipeline-{haystack_version}.schema.json"
|
||||
},
|
||||
]
|
||||
}
|
||||
if new_entry not in index["oneOf"]:
|
||||
index["oneOf"].append(new_entry)
|
||||
with open(destination_path / index_name, "w") as json_file:
|
||||
json.dump(index, json_file, indent=2)
|
||||
# Update the index
|
||||
index_name = "haystack-pipeline.schema.json"
|
||||
with open(destination_path / index_name, "r") as json_file:
|
||||
index = json.load(json_file)
|
||||
new_entry = {
|
||||
"allOf": [
|
||||
{"properties": {"version": {"const": haystack_version}}},
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/deepset-ai/haystack/main/haystack/json-schemas/"
|
||||
f"haystack-pipeline-{haystack_version}.schema.json"
|
||||
},
|
||||
]
|
||||
}
|
||||
if new_entry not in index["oneOf"]:
|
||||
index["oneOf"].append(new_entry)
|
||||
with open(destination_path / index_name, "w") as json_file:
|
||||
json.dump(index, json_file, indent=2)
|
||||
|
@ -4,9 +4,14 @@ version: ignore
|
||||
components:
|
||||
- name: FileTypeClassifier
|
||||
type: FileTypeClassifier
|
||||
|
||||
|
||||
pipelines:
|
||||
- name: query
|
||||
nodes:
|
||||
- name: FileTypeClassifier
|
||||
inputs: [File]
|
||||
|
||||
- name: indexing
|
||||
nodes:
|
||||
- name: FileTypeClassifier
|
||||
inputs: [File]
|
Loading…
x
Reference in New Issue
Block a user