Added Swagger extension, issue #595. Reported and contributed by Grzegorz Godlewski.