Open
Description
Product
BAML
Problem Statement / Use Case
There's no way to remove properties from a type builder or to list added properties.
Proposed Solution
tb = TypeBuilder()
tb.Example.add_property("example", tb.string())
# Remove single property
tb.remove_property("example")
# Loop through properties
for prop in tb.list_properties():
tb.remove_property(prop)
# Clear type builder
tb.clear() # Empty
Alternative Solutions
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
linear commentedon Jun 20, 2025
BAML-432 Add `remove_property` and `list_properties` methods to `TypeBuilder`
antoniosarosi commentedon Jun 22, 2025
#2050