Decode should ignore the $schema property in the root of a JSON document.
The JSON schema allows the $schema property, and it is useful when editing XDR-JSON in editors that use it to provide autocomplete, but when trying to decode a JSON document with the $schema property it is considered an error.
cc @stellar/devx