Skip to content

Create an object type

Creating an object type is the first step in turning domain language into a reusable platform contract.

Current request shape

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

FieldRequiredPurpose
nameyesstable identifier for the type
display_namenohuman-readable label
descriptionnosemantic and operational meaning
primary_key_propertynoidentifies the object’s key field
iconnoUI-facing visual hint
colornoUI-facing semantic color

Current creation flow

text
semantic designer
  -> POST /api/v1/ontology/types
  -> ontology-service persists object_types row
  -> owner_id is derived from JWT subject
  -> object type becomes available for property and interface attachment

OpenFoundry current vs target

DimensionCurrentTarget
creationdirect API creationdesign-time workflow with preview and review
ownershipJWT subject stored as ownerricher project/team ownership model
UI hintsicon and color supportedfuller semantic presentation metadata

Design guidance

  • choose a stable name that reflects domain language, not a source system table
  • write description as operational intent, not technical implementation
  • set primary_key_property only when the identifier model is clear

Released under the Apache 2.0 License.