Skip to content

Commit 5ae06f2

Browse files
vojtabiberleclaude
andcommitted
DMD-921 - Add Version type for format version constants
Define a typed constant for TwinFormatVersion and FormatVersion for better type safety. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 88481bf commit 5ae06f2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

internal/pkg/llm/twinformat/generator.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,14 @@ import (
1515
"github.com/keboola/keboola-as-code/internal/pkg/utils/timeutils"
1616
)
1717

18+
// Version represents a format version number.
19+
type Version int
20+
1821
const (
1922
// TwinFormatVersion is the version of the twin format specification.
20-
TwinFormatVersion = 1
23+
TwinFormatVersion Version = 1
2124
// FormatVersion is the version of the output format.
22-
FormatVersion = 2
25+
FormatVersion Version = 2
2326
)
2427

2528
// GeneratorDependencies defines the dependencies for the Generator.

0 commit comments

Comments
 (0)