You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
MappedObjectType should be replaced with a lazy implementation - only when MappedObjectType is used, its inner objects are created. This would keep inicialized structure only in two levels of mapped objects at a time.
When processing Type structure (mostly in Printer), types must be dereferenced as soon as we obtain all their inner types, so PHP could destroy them
In Printer, write only first level of MappedObjectType on error, so we don't have to print stupidly large structures
The text was updated successfully, but these errors were encountered:
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.
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:
The text was updated successfully, but these errors were encountered: