We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unable to get access to the scheme, I get no error but scheme is nil.
func TestLoadSchemes(t *testing.T) { scheme, err := GetScheme("3.0.0") t.Log(err) t.Log(scheme) assert.Nil(t, err) assert.NotNil(t, scheme) }
=== RUN TestLoadSchemes /Users/postman/Documents/Programs/Asyncapi/parser-go/scheme/scheme_test.go:10: <nil> /Users/postman/Documents/Programs/Asyncapi/parser-go/scheme/scheme_test.go:11: [] /Users/postman/Documents/Programs/Asyncapi/parser-go/scheme/scheme_test.go:13: Error Trace: /Users/postman/Documents/Programs/Asyncapi/parser-go/scheme/scheme_test.go:13 Error: Expected value not to be nil. Test: TestLoadSchemes --- FAIL: TestLoadSchemes (0.00s) FAIL FAIL github.com/Souvikns/parser-go/scheme 0.639s
Should get scheme as []byte of the given version.
[]byte
go get github.com/asyncapi/spec-json-schemas/v4
package main import ( "fmt" "log" scheme "github.com/asyncapi/spec-json-schemas/v2" ) func main() { schema, err := scheme.Get("3.0.0") if err != nil { log.Fatalf(err.Error()) } else { fmt.Println(schema) } }
go run main.go
Mozilla Firefox
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
v4 of the package doesn't contain v3 spec schemas. Please use v6 of the package + update the import paths (to end in /v6 rather than /v4.
/v6
/v4
Sorry, something went wrong.
Closing as you @Souvikns told me it is working now. Please reopen if applies.
No branches or pull requests
Describe the bug.
Unable to get access to the scheme, I get no error but scheme is nil.
Expected behavior
Should get scheme as
[]byte
of the given version.Screenshots
How to Reproduce
go get github.com/asyncapi/spec-json-schemas/v4
go run main.go
🥦 Browser
Mozilla Firefox
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: