Closed tzoiker closed 3 years ago
- the tests fail for most python versions
Fixed.
- the diff contains a lot of unrelated changes which should be removed (possible whitespace-only changes)
I had to reorder JSONPatch
and operations, otherwise, they are not found when JSONPatch
is declared
I just released version 1.28 with this change - thanks for your contribution!
I propose to declare available JSON-patch operations as class-based attributes rather than in the constructor.
Motivation:
Python 2.7 does not support
MappingProxyType
, so it should be handled with more care (due to dict mutability), although I suppose it is not much of a problem as python2.7 was deprecated.