one-data-model / language

(Old repo:) Simple Definition Format (SDF) for One Data Model definitions
7 stars 4 forks source link

Need ODM SDF Syntax to Cover Object / Trait Stability #58

Open gerickson opened 5 years ago

gerickson commented 5 years ago

In Weave Data Language (WDL), objects / traits may be decorated to indicate their stability and to provide a hint to validation and policy enforcement tooling what rule sets and policies should or should not be enforced.

To be expressed in ODM SDF losslessly, a syntax construct for representing the stability of objects / traits is required.

Relevant Example Schema Input Files

Missing or Unmapped WDL-to-ODM SDF Syntax

Example Input WDL

message PowerSourcesTrait {
    option (wdl.message_type) = TRAIT;

    option (wdl.trait) = {
        stability: ALPHA,
        vendor_id: 0x0000,
        id:        0x001A,
        version:   1
    };

    // ...
};
mjkoster commented 5 years ago

Duplicate of #66