mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-26 15:28:48 +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", |     "openapi": "3.0.2", | ||||||
|     "info": { |     "info": { | ||||||
|         "title": "Haystack REST API", |         "title": "Haystack REST API", | ||||||
|         "version": "1.8.1rc0" |         "version": "1.10.0rc0" | ||||||
|     }, |     }, | ||||||
|     "paths": { |     "paths": { | ||||||
|         "/initialized": { |         "/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" |           "$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,17 +406,14 @@ def inject_definition_in_schema(node_class: Type[BaseComponent], schema: Dict[st | |||||||
| 
 | 
 | ||||||
| def update_json_schema(destination_path: Path = JSON_SCHEMAS_PATH): | def update_json_schema(destination_path: Path = JSON_SCHEMAS_PATH): | ||||||
|     """ |     """ | ||||||
|     If the version contains "rc", only update main's schema. |     Create (or update) a new schema. | ||||||
|     Otherwise, 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" |     filename = f"haystack-pipeline-main.schema.json" | ||||||
|     with open(destination_path / filename, "w") as json_file: |     with open(destination_path / filename, "w") as json_file: | ||||||
|         json.dump(get_json_schema(filename=filename, version="ignore"), json_file, indent=2) |         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 |     # Create/update the specific version file too | ||||||
|     filename = f"haystack-pipeline-{haystack_version}.schema.json" |     filename = f"haystack-pipeline-{haystack_version}.schema.json" | ||||||
|     with open(destination_path / filename, "w") as json_file: |     with open(destination_path / filename, "w") as json_file: | ||||||
|  | |||||||
| @ -10,3 +10,8 @@ pipelines: | |||||||
|     nodes: |     nodes: | ||||||
|       - name: FileTypeClassifier |       - name: FileTypeClassifier | ||||||
|         inputs: [File] |         inputs: [File] | ||||||
|  | 
 | ||||||
|  |   - name: indexing | ||||||
|  |     nodes: | ||||||
|  |       - name: FileTypeClassifier | ||||||
|  |         inputs: [File] | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Massimiliano Pippi
						Massimiliano Pippi