-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
sam boyer
committed
May 11, 2023
1 parent
a47c724
commit 17c503b
Showing
5 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# adding or removing a required field is considered a backwards incompatible change | ||
#lineagePath: lin | ||
-- in.cue -- | ||
|
||
import "github.com/grafana/thema" | ||
|
||
lin: thema.#Lineage | ||
lin: name: "breaking" | ||
lin: schemas: [{ | ||
version: [0, 0] | ||
schema: { | ||
firstfield: string | ||
} | ||
}, | ||
{ | ||
version: [0, 1] | ||
schema: { | ||
firstfield: string | ||
added: int32 | ||
} | ||
}, | ||
{ | ||
version: [0, 2] | ||
schema: { | ||
firstfield: string | ||
} | ||
}] | ||
|
||
lin: lenses: [{ | ||
from: [0, 1] | ||
to: [0, 0] | ||
input: _ | ||
result: { | ||
firstfield: input.firstfield | ||
} | ||
}, { | ||
from: [0, 2] | ||
to: [0, 2] | ||
input: _ | ||
result: { | ||
firstfield: input.firstfield | ||
secondfield: 42 | ||
} | ||
}] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Basic schema evolution over time | ||
|
||
#multiversion | ||
#slow | ||
-- in.cue -- | ||
import "github.com/grafana/thema" | ||
|
||
|
Oops, something went wrong.