From 64614f75fecd524ddea24b06c663aebe85026768 Mon Sep 17 00:00:00 2001 From: Philippe Moussalli Date: Wed, 14 Jun 2023 13:37:59 +0200 Subject: [PATCH] make component spec optional --- fondant/component_spec.py | 2 +- tests/example_specs/component_specs/kubeflow_component.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fondant/component_spec.py b/fondant/component_spec.py index ddc76dfb0..03f3bed16 100644 --- a/fondant/component_spec.py +++ b/fondant/component_spec.py @@ -47,7 +47,6 @@ class Argument: description: argument description type: the python argument type (str, int, ...) default: default value of the argument (defaults to None) - optional: whether an argument is optional or not (defaults to False) """ name: str @@ -234,6 +233,7 @@ def from_fondant_component_spec( "name": "component_spec", "description": "The component specification as a dictionary", "type": "JsonObject", + "default": "None", }, *( { diff --git a/tests/example_specs/component_specs/kubeflow_component.yaml b/tests/example_specs/component_specs/kubeflow_component.yaml index 199d2bde0..5f2e33690 100644 --- a/tests/example_specs/component_specs/kubeflow_component.yaml +++ b/tests/example_specs/component_specs/kubeflow_component.yaml @@ -10,6 +10,7 @@ inputs: - name: component_spec description: The component specification as a dictionary type: JsonObject + default: None - name: storage_args description: Storage arguments type: String