Update inputs.py

This commit is contained in:
Jonathon Broughton
2024-11-30 13:08:26 +00:00
committed by GitHub
parent 7cd842d0af
commit e7c2b7a670
+9 -12
View File
@@ -1,20 +1,17 @@
from pydantic import Field
from speckle_automate import AutomateBase
class FunctionInputs(AutomateBase):
"""These are function author defined values.
Automate will make sure to supply them matching the types specified here.
Please use the pydantic model schema to define your inputs:
https://docs.pydantic.dev/latest/usage/models/
"""
# In this exercise, we will add two new input fields to the FunctionInputs class.
"""Input parameters for the Revit property validation function."""
# Category of Revit elements to check
category: str = Field(
title="Revit Category",
description="This is the category objects to check.",
title="Revit Category",
description="The category of objects to validate (e.g., Walls, Floors)",
)
# Property to validate within the category
property: str = Field(
title="Property Name",
description="This is the property to check.",
title="Property Name",
description="The property to check on each object in the category",
)