Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dsms/knowledge/webform.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ class RelationMapping(BaseWebformModel):
None,
description="Target class IRI if the type of relation is an object property",
)
inverse: Optional[bool] = Field(
False,
description="If true, the relation is reversed",
)

def __str__(self) -> str:
"""Pretty print the model fields"""
Expand Down Expand Up @@ -283,6 +287,9 @@ class Webform(BaseWebformModel):
[], description="Class mapping"
)
sections: List[Section] = Field([], description="List of sections")
description: Optional[str] = Field(
None, description="Description of the webform"
)

def __str__(self) -> str:
"""Pretty print the model fields"""
Expand Down