Skip to content

JSON typing borken #61

@genehack

Description

@genehack

f4bf04d has introduced a bug; code that does this:

my $resp = Net::GitHub->new( %gh_args )->repos->create_fork( $owner , $repo_name );

which used to work, now throws this error:

Reference bless( do{\(my $o = "")}, 'Cpanel::JSON::XS' ) did not pass type constraint (not isa     JSON::MaybeXS) (in $self->{"json"}) at (eval 163) line 32
    "InstanceOf["JSON::MaybeXS"]" requires that the reference isa JSON::MaybeXS
    The reference (in $self->{"json"}) isa Cpanel::JSON::XS and Exporter

Maybe that type check should be changed to check for all three things JSON::MaybeXS might return?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions