ToJSON: serialize string_columns to JSON

If the column is undefined, then it should be an empty string according to your
API spec.
This commit is contained in:
Cole Helbling
2021-04-26 16:37:25 -07:00
parent f0ede5f8b8
commit 50fab154a4
3 changed files with 7 additions and 3 deletions

View File

@ -25,11 +25,11 @@ my $projectinfo = request(GET '/project/tests',
ok($projectinfo->is_success);
is(decode_json($projectinfo->content), {
description => undef,
description => "",
displayname => "",
enabled => JSON::true,
hidden => JSON::false,
homepage => undef,
homepage => "",
jobsets => [],
name => "tests",
owner => "root"