feat: its not a list only if i say that is not a list, its not enought to think it shouldn't be

This commit is contained in:
Gergő Jedlicska
2023-09-20 14:34:25 +02:00
parent 439dfc7266
commit ce90afeab5
+7 -1
View File
@@ -21,7 +21,13 @@ class FunctionInputs(AutomateBase):
ttps://docs.pydantic.dev/latest/usage/models/
"""
forbidden_speckle_type: list[str] = Field(title="Forbidden speckle type")
forbidden_speckle_type: str = Field(
title="Forbidden speckle type",
description=(
"If a object has the following speckle_type,"
" it will be marked with an error."
),
)
def automate_function(