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
When running a testcase like:
func TestSzConfigAddDataSourceResponseTest000(test *testing.T) { ctx := context.TODO() jsonString := `"{}"` jsonStruct := SzConfigAddDataSourceResponse{} err := json.Unmarshal([]byte(jsonString), &jsonStruct) testError(test, ctx, err) _, err = json.Marshal(jsonStruct) testError(test, ctx, err) }
The following error is returned.
json: cannot unmarshal string into Go value of type typedef.AddDataSource
Figure out how to support unmarshalling "{}".
"{}"
The text was updated successfully, but these errors were encountered:
Answer: Change the value in response-testcases.json to:
response-testcases.json
"SzConfigAddDataSourceResponse": { "tests": { "test-000": {}, "test-001": { "DSRC_ID": 1 } } },
Sorry, something went wrong.
Fixed via #43
docktermj
No branches or pull requests
When running a testcase like:
The following error is returned.
Figure out how to support unmarshalling
"{}"
.The text was updated successfully, but these errors were encountered: