Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
add title and description to RuleSet base
Browse files Browse the repository at this point in the history
  • Loading branch information
jgunstone committed May 26, 2023
1 parent 54f3d9e commit 987f0ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pyrulefilter/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,16 @@ class Config:


class RuleSetBase(BaseModel):
"""defines a set of filter rules used to define what appears in a schedule"""

name: str = Field(
"",
description="name of rule set. indicates schedule name in Revit",
column_width=200,
)
description: str = Field(None, description="optional description of rule set")
description: str = Field(
None, description="optional description of rule set", column_width=300
)
set_type: RuleSetType = Field(
default=RuleSetType.AND,
disabled=True,
Expand All @@ -110,6 +114,7 @@ class RuleSetBase(BaseModel):
class Config:
allow_extra = True
orm_mode = True
title = "Rule Set Definition"


class RuleSet(RuleSetBase):
Expand Down

0 comments on commit 987f0ae

Please sign in to comment.