orisai / object-mapper

Raw data mapping to validated objects
Mozilla Public License 2.0
10 stars 1 forks source link

PHP is crashing hard on large Type structures #43

Closed mabar closed 1 year ago

mabar commented 1 year ago

orisai/openapi currently fails on creation of whole Type structure of the OpenAPI class if all nodes are allowed, because it creates more than ~10k objects and PHP fails with Exit Code: 139(Segmentation violation)

While it could be fixed by PHP, this whole structure is unreasonable. Instead, we could do this:

mabar commented 1 year ago

Types themselves will have to store information if they are the first in hierarchy - simple circural references check as currently implemented by MappedObjectRule will be no longer possible, because structure will be created JIT, instead of immediately.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.