Skip to content

Create a property

Property creation is already guarded by basic semantic validation in ontology-service.

Current request shape

Based on CreatePropertyRequest in services/ontology-service/src/models/property.rs, OpenFoundry currently supports:

FieldRequiredPurpose
nameyesstable property identifier
display_namenouser-facing label
descriptionnosemantic meaning
property_typeyesvalue kind
requirednomandatory or optional
unique_constraintnouniqueness semantics
time_dependentnotime-aware behavior
default_valuenoinitial value
validation_rulesnoadditional validation metadata

Current validation flow

At creation time the handler currently validates:

  • non-empty property name
  • allowed property type through validate_property_type
  • default value compatibility through validate_property_value

Why this matters

That means OpenFoundry is already moving beyond blind schema insertion and treating properties as semantic constructs with typed behavior.

Released under the Apache 2.0 License.