Contributions
How do you consume OpenAPI 3.0 specifications?
As a member of this community, you might using OpenAPI specifications to define REST-like APIs to services.Or you might be a developer consuming an OpenAPI specification that you've been given.In some cases such APIs may simply be internal APIs used within an enterprise, while in other cases they may be exposed more openly to external developers. Whichever role you are in, my question is about how the OpenAPI specifications are used by consumers of the API, especially when such consumers are outside of the API-defining organization. Do consumers typically just use them as a form of documentation and then develop clients by hand? Or is there an attempt to generate client-side code that meshes with the client application? Are existing tools sufficient to generate this code or are customizations to the tools needed? Or have home-grown tools have been developed? Does this include both client-side code for invoking the service and client-side type definitions (and the associated marshalling to and from JSON)? Does the choice of client side language (Java, C#, JavaScript, etc.) impact these decisions? Thanks1.9KViews1like1CommentJavaScript Errors in SwaggerHub Editor
My (previously working) 3.0 specifications are now reporting JavaScript errors in the SwaggerHub editor. It does correctly render the documentation view, but it reports that the specification has errors, which also show up in the browser's console log.I've crafted an artificial example that shows the same problem and I've attached it. In Error list: "Cannot read property '1' of undefined" In console log: main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104 TypeError: Cannot read property '1' of undefined at o (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:106) at Object.i [as applyPatch] (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:106) at Object.o [as applyPatch] (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104) at e.value (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104) at main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104 at Array.forEach (<anonymous>) at e.value (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104) at e (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104) at main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104 at e.value (main-bde26d4f53c20f5fd7ebd6f6e0601ff3.js:104)Solved2.8KViews0likes4Comments