Open anthochristen opened 5 months ago
@gracekarina I see that you have worked on the files in which most of this changes are done for this issue (#2086). Would be great if you can take a look at these changes.
Have a blanket IT type test for now, can add more in depth UTs once I get some comments on these changes.
Thanks @frantuma for assigning this to yourself!
P.S: These issues are not present in the npm swagger-parser
lib.
@frantuma I've changed the oneOf and anyOf to be inclusive, kindly help take a look when possible, thanks!
This PR is to address the $ref handling issues in callbacks and discriminator mapping objects as detailed in #2086. It does it with the following changes
anyOf
like its done forOneOf
inSchemaProcessor
class.ComplexSchemas
processRefToExternalPathItem
inExternalRefProcessor
so that it can be used for $ref path resolution in PathItems used within callbacks.Each done in dedicated commits, although there might be some spill over.