MCPcopy Create free account
hub / github.com/github/gh-aw / IsSchemaVersionSupported

Function IsSchemaVersionSupported

pkg/workflow/lock_schema.go:69–71  ·  view source on GitHub ↗

IsSchemaVersionSupported checks if a schema version is supported

(version LockSchemaVersion)

Source from the content-addressed store, hash-verified

67
68// IsSchemaVersionSupported checks if a schema version is supported
69func IsSchemaVersionSupported(version LockSchemaVersion) bool {
70 return slices.Contains(SupportedSchemaVersions, version)
71}
72
73// ExtractMetadataFromLockFile extracts structured metadata from a lock file's comment header
74// Returns metadata and whether legacy format (no metadata) was detected

Callers 2

Calls

no outgoing calls

Tested by 1