Last active
October 14, 2021 23:55
-
-
Save sdboyer/0ab13be28abf641a3e40afc27d10c3c4 to your computer and use it in GitHub Desktop.
Basic scuemata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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