Closed ratulm closed 6 years ago
For a real-world example, see http://intentionet.github.io/batfish/docson/#../datamodel.json. The relevant part is routingPolicies --> expand "Statement" --> expand "If" which nicely shows that If contains Statement.
I got this by modifying expectObjectFormat. The changes are committed to branch noAbstractInline of my fork. I didn't issue a pull requests because it breaks some tests, and I don't have the expertise to fix them easily.
Happy to help if you wanted to incorporate this change.
Thanks.
I'm not sure but I might think that what you suggests is an improvement :) I'll look into it.
Closing issue due to lack of interest
Hi, I have an inter-linked class structure, the essence of which can be captured as the following:
The module generates schema by essentially inlining the abstract class, as follows:
The issue is that this representation is losing information that all of the oneOf's are of the same type (Parent). Would it be possible to generate something like the following?