Created
April 19, 2023 16:13
-
-
Save sdboyer/34fd38e41c14efc638d6957ff94a2de2 to your computer and use it in GitHub Desktop.
flattened lineages
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/thema" | |
thema.#Lineage | |
name: "trivial-two" | |
schemas: [{ | |
version: [0, 0] | |
schema: { | |
firstfield: string | |
} | |
}, | |
{ | |
version: [0, 1] | |
schema: { | |
firstfield: string | |
secondfield?: int32 | |
} | |
}] | |
lenses: [{ | |
from: [0, 1] | |
to: [0, 0] | |
input: _ | |
result: { | |
firstfield: input.firstfield | |
} | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment