Pyecore

Latest version: v0.15.2

Safety actively analyzes 701868 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 11

0.11.4

++++++

**Bugfixes**

- Fix issue with xmi ecore supertype references. When an ecore model has two elements A and B and that B inheriths from
A which is another element in a second ecore model, then, as their name
are equivalent, the resolution could, sometimes have problems in
resolving the elements, mistaking A from the first ecore with A from the
second one. In the case the wrong ecore was referenced, it implied a
circular reference for inheritency that caused the ecore file loading to
fail.

- Fix issue with weird URI (``plateform:/``). Weird uri that does not contains ``://`` provoques problems in the
automatic object resolving. This fix avoid that the relative uri
computation adds the relative path to the external uri it tries to
resolve.

- Fix issue with computation of ``many`` feature. The "algo" used to compute the ``many`` feature was wrong and introduced non-logical behavior when a reference or an attribute was having its lower and upper bound set to a same value higher than ``0`` (e.g.: ``2..2``).Thanks
`jorensips <https://github.com/jorensips>`_ for the issue.

0.11.3

++++++

**Bugfixes**

- Fix issue with ``None`` object serialization for containment features. This happened when a ``None`` is explicitly written in a containment reference and the ``XMIOptions`` for default value serialization is activated. In that case a special ``nil`` object was supposed to be written, but it was not the case here.

0.11.2

++++++

**Bugfixes**

- Fix change of container of an objet when the reference is single.
Thanks `annighoefer <https://github.com/annighoefer>`_ for the fix!
The issue came when an object was moved from a single relationship container to another one from the same class, the contained object was contained by the two containers.

- Fix Fix root element id not added to uuid_dict if its feature.ID is set.
Thanks `ewoudwerkman <https://github.com/ewoudwerkman>`_ for the fix!
The root node's ``ID`` was not referenced in the ``uuid_dict`` even if the root node had the ``ID`` feature set.

0.11.1

++++++

**Bugfixes**

- Fix XMI serialization compatibility when a proxy to a metaclass is used (typically when a metamodel reference another).
Thanks `stefanq <https://github.com/stefanq>`_ for the simple demo/example/test!


**Miscellaneous**

- Remove ``issubclass`` patch, the new version remove this requirement and still assure the same behavior.

0.11.0

++++++

**Features**

- Add an ``URIConverter`` to transform ``URIs`` to custom ones (Thanks
`ewoudwerkman <https://github.com/ewoudwerkman>`_ for the issue and the
pull requests!).
Each new converter can be isolated by ``ResourceSet`` or globaly for every
``Resource``.

**Bugfixes**

- Fix empty valued id attributes to be used as keys in reference links when saving a resource (Thanks `annighoefer <https://github.com/annighoefer>`_!).

**Miscellaneous**

- Remove dependency on deprecated defusedxml.lxml

0.10.3

++++++

**Bugfixes**

- Fix EDate serialization (Thanks `ewoudwerkman <https://github.com/ewoudwerkman>`_!).
This patch provides a solution to the issues with time zone information in dates.
It makes the parsing and serialization of dates compatible with how EMF currently
handles dates and UTC offsets.

- Fix xmi empty references refer to root (Thanks `annighoefer <https://github.com/annighoefer>`_!).
Deleted objects that were also referred by non-containment references elsewhere were serialized in xmi
as `ref=""`, introducing a `BadValueError` when loading the file again as the root of the model was found as reference.
The fix solves the loading issue by skiping empty references.

Page 3 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.