open-feature / spec

OpenFeature specification
https://openfeature.dev
Apache License 2.0
754 stars 36 forks source link

Spec styling and consistency issues #187

Open toddbaert opened 1 year ago

toddbaert commented 1 year ago

As mentioned here, there's some consistency issues with the non-normative parts of the spec. It would be great to get a thorough review of this. These proposed fixes are all editorial, not functional.

Examples of ways we can improve:

cc @tcarrio

aepfli commented 5 months ago

I thought I could help here with the mermaid diagrams. If you think they're fine, I can add them - they also work on GitHub, so I would also suggest using them. Please let me know, if this is suitable ;) - glad to open a pull request for this.

provider

provider

flowchart LR
    A[Application] --> |Evaluation API| B{Provider}
    B --> C[Flag managment system]

hooks

i am unsure hooks

either a state diagram (can't change it to dotted lines, but syntactically it is the correct one)

stateDiagram-v2
    direction LR
    B : "Before" Stage
    F : Flag Evaluation
    A : "After" Stage
    E : "Finally" Stage
    X : "Error" Stage

    [*] --> B
    B --> F
    B --> X : on Error
    F --> A
    F --> X : on Error
    A --> E
    X --> E
    E --> [*]

or a flowchart (looks better, but is more a hacked version with the start point)

flowchart LR
    A("Before" Stage)
    F("Flag Evaluation")
    B("After" Stage)
    C("Finally" Stage)
    E("Error" Stage)

    Start( ) --> A
    A --> F
    F --> B
    B --> C
    A -.-> E

    F -.-> E
    E -.-> C
    C --> End( )
Kavindu-Dodan commented 5 months ago

state diagram

I like the state diagram as we can define the operation on the transition compared to flow chart.