Skip to content

model-workspace schema (v0.1)

The model-workspace file is validated by the normative JSON Schema published at its canonical URL:

PropertyTypeRequiredDescription
kind"model-workspace"yes
schemaVersionstringyes
projectIdstringyes
revisionnumberyes
resourcesWorkspaceResourceEntry[]yes
sourceBindingsSourceBindingEntry[]yes
viewsViewEntry[]yes
mappingsWorkspaceMapping[]yes
annotationsAnnotationEntry[]yes
ownershipTransfersOwnershipTransferEntry[]yes
capabilityLockCapabilityLockyes

Parser/exporter adapter identity — distinct from standard and schema versions.

PropertyTypeRequiredDescription
idstringyes
versionstringyes
PropertyTypeRequiredDescription
annotationIdstringyes
targetMappingEndpointyes
targetRevisionRevisionPolicyyes
textstringyes
authorstringyes
visibility"private" | "project"yes
PropertyTypeRequiredDescription
profilesstring[]yes
adaptersAdapterRef[]yes
libraryDependenciesobject[]yes

Type: "ddd" | "dsm" | "c4" | "context-map" | "state-lens"

PropertyTypeRequiredDescription
projectIdstringyes
familyOwnerFamilyIdyes
artifactIdstringyes
elementIdstringno

Type: "suggested" | "accepted" | "rejected"

Type: StandardModelFamilyId | LegacyOwnerModelId

PropertyTypeRequiredDescription
transferIdstringyes
artifactIdstringyes
legacyOwnerOwnerFamilyIdyes
newOwnerFamilyOwnerFamilyIdyes
migrationCommandIdstringyes
aliasMapRecord<string, string>yes
preservedSourceSha256stringyes
status"proposed" | "applied" | "rolled-back"yes

Revision policy of a reference (technical contracts §2.3). pinned carries the revision and optionally the content hash it was pinned against.

Type: object

PropertyTypeRequiredDescription
artifactIdstringyes
resourceIdstringyes
baselineSha256stringyesImmutable baseline hash the artifact was imported against.
adapterAdapterRefyes
externalIdMapRecord<string, string>yesexternal element id → internal element UUID.
reimportState"never" | "staged" | "applied"yes

Type: "bpmn" | "seq" | "uml-class" | "er" | "stm" | "dmn" | "use-case" | "activity" | "dfd" | "uml-component" | "deployment" | "archimate" | "sysml" | "cmmn" | "timing" | "petri" | "api-contracts"

PropertyTypeRequiredDescription
viewIdstringyes
artifactIdstringyes
profileIdstringyes
includedElementIdsstring[]yes
presentationTypestringyes
layoutRevisionnumberyesBumped whenever saved layout changes; layout is view content.
settingsRecord<string, string>no
PropertyTypeRequiredDescription
linkIdstringyes
kindstringyes
fromMappingEndpointyes
toMappingEndpointyes
revisionPolicyRevisionPolicyyes
statusMappingStatusyes
authorstringyes
provenance"user" | "transformation" | "import"yes
reviewedBystringno
transformRefstringno
PropertyTypeRequiredDescription
resourceIdstringyes
sha256stringyes
mediaTypestringyes
byteLengthnumberyes
originalFilenamestringyes
namespaceDetectionobjectno
accessScope"project" | "org"yes
blobRefstringyes

See the schemas overview for the versioning policy and how these files are generated and kept in sync.