mozilla / nimbus-shared

Shared data and schemas for Project Nimbus
https://mozilla.github.io/nimbus-shared
Mozilla Public License 2.0
6 stars 15 forks source link

Add explicit schema versions #140

Closed jaredlockhart closed 4 years ago

jaredlockhart commented 4 years ago

It would be nice if the schemaVersion field explicitly declared what values it expects, maybe something like

  enum SchemaVersion {
    V1: "v1",
    V2: "v2"
  }

  export interface NimbusExperiment {
    schemaVersion: SchemaVersion,
    ...
  }
jaredlockhart commented 4 years ago

Actually I realized it's probably better to use the version of this repo's published package as the version string, ie "1.0.0" for the current version that way it's easy to correlate with the tags in the repo, so I'll close this.