Skip to content

Commit 578ca87

Browse files
author
Kiran Kumaraswamy
committed
support reverse attribute in relation mapping
1 parent 9069ab4 commit 578ca87

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dsms/knowledge/webform.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ class RelationMapping(BaseWebformModel):
192192
None,
193193
description="Target class IRI if the type of relation is an object property",
194194
)
195+
reverse: Optional[bool] = Field(
196+
False,
197+
description="If true, the relation is reversed",
198+
)
195199

196200
def __str__(self) -> str:
197201
"""Pretty print the model fields"""
@@ -283,6 +287,9 @@ class Webform(BaseWebformModel):
283287
[], description="Class mapping"
284288
)
285289
sections: List[Section] = Field([], description="List of sections")
290+
description: Optional[str] = Field(
291+
None, description="Description of the webform"
292+
)
286293

287294
def __str__(self) -> str:
288295
"""Pretty print the model fields"""

0 commit comments

Comments
 (0)