apidom
apidom copied to clipboard
Serializing dereferenced ApiDOM
Currently it's not possible to serialize dereferenced ApiDOM. Dereferenced ApiDOM has a formal structure defined as: directed cyclic graph. In order to use our already build-in serialization mechanism we need to represent directed cyclic graph as directed acyclic tree.
Possible way of implementing this is using RefElement from our underlying technology called minim. Documentation of RefElement contains specification and requirements of algorithm using RefElement to achieve the goal.
We need to have this in order to execute dereferencing in Web Workers and transfer the dereferened ApiDOM using structured clone algorithm. Base usecase for this is to be able to serialize and transfer/persist dereferened ApiDOM.