Improvement to OpenApiInteractionBuilder

Issue #393 new
Former user created an issue

Although it's in the documentation, I found out the hard way that createFor(String specUrlOrPayload) method logs exceptions (and prints the entire spec) when this argument is not a filepath. I'd think checking for valid inline json FIRST would get around this exception. In other words don't even bother checking if it is a valid OpenAPI spec at first. If it is json at all, then you know it is not a file or url.

Other option: Just go ahead and deprecate it!

Comments (0)

  1. Log in to comment