Thank you for the great work on this library. I have a use case where I have a jsonNode containing the swagger contents (and not a URI or a file). I'd prefer not to have to write this data to a file just to use this tool.
I have a local implementation that adds a compareV2Json static method to SwaggerDiff that looks a lot like compareV2 and calls a new associated private constructor. If you have strong feelings about the method name, I'm happy to adjust.
swagger-parser already has a read(JsonNode) method.
If there's a simpler way to achieve this that doesn't require a code change, I'd appreciate a pointer.
Thanks!
Thank you for the great work on this library. I have a use case where I have a jsonNode containing the swagger contents (and not a URI or a file). I'd prefer not to have to write this data to a file just to use this tool.
I have a local implementation that adds a
compareV2Jsonstatic method toSwaggerDiffthat looks a lot likecompareV2and calls a new associated private constructor. If you have strong feelings about the method name, I'm happy to adjust.swagger-parseralready has aread(JsonNode)method.If there's a simpler way to achieve this that doesn't require a code change, I'd appreciate a pointer.
Thanks!