MDL-70963 core_badges: Use expected JSON format for OBv2.1
commit4736877c43778873689f33d96606b75833a805e2
authorSara Arjona <sara@moodle.com>
Mon, 22 Feb 2021 15:20:49 +0000 (22 16:20 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 26 Mar 2021 08:02:41 +0000 (26 09:02 +0100)
treef85a421929f8450484f382f0c4111786002092af
parent773e7cd612c482e4591d1907c0a275e993baed46
MDL-70963 core_badges: Use expected JSON format for OBv2.1

This patch adds some changes to guarantee that OpenBadges 2.1 (OBv2.1)
will return always the same JSON format that OBv2.0 (because the only
difference between both versions it's the BadgeConnect API).
badges/assertion.php
badges/classes/assertion.php
badges/tests/badgeslib_test.php