[ANNOUNCEMENT] Official Swagger 2.0 tools are here!
1,467 views
Skip to first unread message
Ron
unread,
Jun 10, 2015, 9:18:03 AM6/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to swagger-sw...@googlegroups.com
Greetings Swagger Community,
It is our great pleasure to announce that we've pushed out a whole set of tools with official Swagger 2.0 support! After a few iterations and with constant community support and contributions, we've made it official.
Even though some have been specifically mentioned several times, it's important to credit @whitlockjc, @mohsen1 and @theganyo from Apigee for their Javascript (+node) contributions, plus @wing238, @xhh and @geekerzp for their codegen contributions, and to the many others who submitted issues, PRs and kept pushing us to provide a higher quality set of tools.
We've released a new version of swagger-js, swagger-ui, swagger-core, swagger-parser, swagger-codegen and the validator-badge. These include various enhancements to the previous milestone releases (described in the release notes), but notable features are YAML support as a first-class citizen, support for external refs, composition and so much more.
The swagger-core and swagger-codegen have been repackaged as io.swagger - this affects both imports and artifact groupIds.
The community libraries have moved from swagger-spec to our website, and been rearranged to help you find which libraries support Swagger 2.0.
Last, but absolutely not least, we have a new implementation for Node.js integration! Thanks to a major contribution from Apigee, we now have swagger-node with Swagger 2.0 support! This project replaces the old swagger-node-express implementation.
As always, we look forward to your feedback and contributions to push these projects even further.
And now, for the individual release notes of each project.
The first formal release of Swagger 2.0 support in the javascript library. This project is used extensively by swagger-ui for communicating with swagger-enabled servers. There are many changes between this release and previous 2.0.x versions.
Swagger-js and other formal swagger projects have had intermediate,
milestone releases supporting the swagger 2.0 specification. This
version supersedes the previous milestones in accordance with the semver
strategy.
Usage notes
Swagger-js introduces a new constructor. Instead of passing all
arguments in the constructor of swagger-client, the preferred mechanism
for instantiation is as follows:
var client = new SwaggerClient();
client.initialize(url, options);
The existing constructor is still supported.
Major changes
There is now a general resolver class which is
responsible for finding remote references to other objects and bringing
them into a single, canonical swagger instance. This step also allows
for resolving allOf and other modeling features.
You can now pass in a javascript object representing a swagger
description. This means remote calls are not necessary when
initializing the client to read the spec (#408).
Swagger HTTP is now pluggable. That means you can create your own transports to replace the existing superagent or jquery based HTTP clients (#239).
YAML is now a first-class format in both core and remote, shared references #323
Notable features
allOf composition and inheritence support added to top-level /definitions (note, recursive allOf support is not implemented, nor is allOf enabled for inline models) #455, #188
Remote references for models, model properties, parameters, operations now supported, #433, #460, #417
Response interceptors can now post-process responses from API calls, #126
This is the first formal release of swagger-ui with 2.0 spec
support. Many thanks to the community for furthering the development of
swagger!
Usage notes
Initialization of swagger-ui should be consistent with previous 2.1.x-M versions.
Major changes
With the updated swagger-js, swagger-ui now supports relative references, yaml, and composition support. Please see the swagger-js
release notes. In addition to updates to the features to support
swagger spec 2.0, the UI does not need to be globally referenced, which
means you can deploy multiple instances in a single page.
This is the first formal release of swagger-codegen with 2.0
spec support. Many thanks to the community for furthering the
development of swagger and especially to @wing328 and @xhh (among others) for their generous contributions to the project.
Please note! We have repackaged the project from com.wordnik to io.swagger. The code API is the same!
Usage notes
Swagger-codegen has a fresh new command-line interface, and can be run, stand-alone or as a web-service from open-source tools.
Major changes
With the added support in swagger-parser, swagger-codegen now supports more complete swagger 2.0 specifications as well as YAML file formats.
Added support for c++ in the QT5 framework, as well as Perl, and Swift.