Skip to content

Instantly share code, notes, and snippets.

@sdboyer
Last active October 14, 2021 23:55
Show Gist options
  • Save sdboyer/0ab13be28abf641a3e40afc27d10c3c4 to your computer and use it in GitHub Desktop.
Save sdboyer/0ab13be28abf641a3e40afc27d10c3c4 to your computer and use it in GitHub Desktop.
Basic scuemata
import "github.com/grafana/scuemata"
// Make the whole file a scuemata.Family
scuemata.Family
lineages: [{
// Schema versions are implicitly defined by the schema's position in the arrays
schemas: [
{ // Schema 0.0
somefield: string
},
{ // Schema 0.1
schemas[0] // Shown for clarity; will likely happen automatically
anotherfield?: int
}
]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment