Handle internal refs so they don't duplicate with different descriptions
Fixes #193 with new resolve option set to false
I tried an approach which removed the description fields and then did a deep comparison. That does work but resulted in referencing interfaces that may be the same in structure but weren't originally referenced in the schema.
The JSON-Schema-Ref-Parser should (somehow) be maintaining the same object equality but set a different attribute.
I don't have a lot of time to work on this PR, I'm just using the quick fix to make my output sane. Feel free to close it if you like.
I tried an approach which removed the description fields and then did a deep comparison. That does work but resulted in referencing interfaces that may be the same in structure but weren't originally referenced in the schema.
I think you can use a shallow comparison, right? Per (1) and (2) above, we should maintain referential identity, even after de-referencing, and if we don't, that should be fixed as part of this PR (or, as a pre-req for it).
I think you can use a shallow comparison, right? Per (1) and (2) above, we should maintain referential identity, even after de-referencing, and if we don't, that should be fixed as part of this PR (or, as a pre-req for it).
Yes, I agree. Sorry, I just don't have time to work on this more. Perhaps someone else can help out?