Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement schema validation for vendoring and schemas #1147

Draft
wants to merge 40 commits into
base: feature/dev-3056-refactor-gogetter-utility-for-better-testability-2
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
867fd1c
fix golangci-lint
samtholiya Feb 21, 2025
6171e6d
fixed logging
samtholiya Feb 24, 2025
6694ca1
add validate schema initial code
samtholiya Feb 14, 2025
5d47d07
temp commit
samtholiya Feb 19, 2025
941badf
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 19, 2025
43cb3b6
refactor the code
samtholiya Feb 26, 2025
fe74f22
Fix test case
samtholiya Feb 27, 2025
23d4a8e
added unit testcase for validator
samtholiya Feb 27, 2025
185dc73
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2025
cb12fb6
fixed golangci-lint
samtholiya Feb 27, 2025
2acfb80
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2025
d8faaca
fix golangci-lint
samtholiya Feb 27, 2025
33660d1
used existing gogetter
samtholiya Feb 27, 2025
9621a58
unit test case updated
samtholiya Feb 28, 2025
6139904
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2025
a0c8d86
golangci-lint fix
samtholiya Feb 28, 2025
b8c0e24
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 28, 2025
883933a
more test cases
samtholiya Mar 5, 2025
06b13e2
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 5, 2025
9d37e77
rebase fix
samtholiya Mar 14, 2025
82f3dc9
update validator
samtholiya Mar 20, 2025
f209905
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 20, 2025
0045223
update validator
samtholiya Mar 20, 2025
b99b034
Merge branch 'feature/dev-3030-implement-schema-validation-for-vendor…
samtholiya Mar 20, 2025
aa5a0a4
glob match updated
samtholiya Mar 20, 2025
500db9e
fix glob for mac and windows
samtholiya Mar 20, 2025
206f5c2
add inline schema support
samtholiya Mar 20, 2025
ba10dce
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 20, 2025
48bbda9
schema is the new name
samtholiya Mar 20, 2025
30c7e95
Merge branch 'feature/dev-3030-implement-schema-validation-for-vendor…
samtholiya Mar 20, 2025
529b11b
codecov updated
samtholiya Mar 20, 2025
17c5beb
fix test cases
samtholiya Mar 21, 2025
b550ab2
updated atmos schemas library
samtholiya Mar 22, 2025
976c642
fix macos test case
samtholiya Mar 22, 2025
d4c7ec5
fix test cases
samtholiya Mar 23, 2025
ed6228f
add more schemas
samtholiya Mar 23, 2025
3a2ec28
Merge branch 'feature/dev-3056-refactor-gogetter-utility-for-better-t…
samtholiya Mar 23, 2025
848fbcf
update logging structure
samtholiya Mar 23, 2025
6eebbd1
trying to ignore mock files
samtholiya Mar 23, 2025
eca159c
set flag and key
samtholiya Mar 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[autofix.ci] apply automated fixes
autofix-ci[bot] authored and samtholiya committed Mar 14, 2025
commit 61399040c59fd9b95eeed9fa19c5e67cc315def3
3 changes: 1 addition & 2 deletions pkg/datafetcher/atmos_fetcher.go
Original file line number Diff line number Diff line change
@@ -9,8 +9,7 @@ import (
var atmosSchema string

// AtmosFetcher fetches data from the in-memory Atmos storage.
type AtmosFetcher struct {
}
type AtmosFetcher struct{}

// Sentinel error for quick checks.
var ErrAtmosSchemaNotFound = errors.New("atmos schema not found")
3 changes: 1 addition & 2 deletions pkg/datafetcher/file_fetcher.go
Original file line number Diff line number Diff line change
@@ -6,8 +6,7 @@ import (
)

// FileFetcher fetches data from a file.
type FileFetcher struct {
}
type FileFetcher struct{}

func (f FileFetcher) FetchData(source string) ([]byte, error) {
data, err := os.ReadFile(source)