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

Golang Test Validator Errors #576

Open
willcalcote opened this issue Aug 21, 2024 · 4 comments
Open

Golang Test Validator Errors #576

willcalcote opened this issue Aug 21, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed issue/willfix This issue will be worked on kind/chore Necessary task language/go Golang related

Comments

@willcalcote
Copy link

Description
Running make test produces the following errors:

--- FAIL: TestValidator (0.01s)
    validate_test.go:70: unknown domain for reference "../core.json#/definitions/uuid" (and 4 more errors)
    validate_test.go:70: unknown domain for reference "../core.json#/definitions/uuid" (and 4 more errors)
    validate_test.go:80: test failed for catalog_data, got true, want true error: <nil>
    validate_test.go:70: unknown domain for reference "../core.json#/definitions/uuid" (and 4 more errors)
    validate_test.go:80: test failed for models, got true, want true error: <nil>

Expected Behavior
All tests passing.

@willcalcote willcalcote added good first issue Good for newcomers help wanted Extra attention is needed issue/willfix This issue will be worked on kind/chore Necessary task language/go Golang related labels Aug 21, 2024
@ShivanshuGupta07
Copy link

@willcalcote, I think the error is coming because the schema for path design, catalog_data, and models is nil

@ShivanshuGupta07
Copy link

@TomiwaAribisala-git , If there was an error in the loadSchema() function, then why the log message "error in loadSchema" is not appearing?

@ShivanshuGupta07
Copy link

On tracking back the error, I got to know that jsonschema.Extract() written inside 'func JsonSchemaToCue(value string)(){}' of cue.go is producing error which is Error during jsonschema.Extract: unknown domain for reference "../core.json#/definitions/uuid" (and 4 more errors)

@mainali123
Copy link

@willcalcote
It seems that core.json is expected at ../core.json, but the file is not present in the repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed issue/willfix This issue will be worked on kind/chore Necessary task language/go Golang related
Projects
None yet
Development

No branches or pull requests

3 participants