Bug 16212: Add script minifySwagger.pl
commit1f71fe9eb5cc3de869643f565392a6705cea8c40
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 6 Apr 2016 11:16:50 +0000 (6 13:16 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 25 Aug 2016 12:43:05 +0000 (25 12:43 +0000)
tree95300e1bbeba76a2cd5274b1000309d49663460e
parentfa48df281d68fe1d27cc6fb10b41e4504a70afb9
Bug 16212: Add script minifySwagger.pl

This patch introduces the misc/devel/minifySwagger.pl script that
loads the Swagger files, follows references and produces a compact
("minified") version of the swagger file which is suitable for
distribution.

The wiki page should be updated with instructions on how to regenerate
it so the Release Manager does it on each spec upgrade.

Signed-off-by: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
My name is Olli-Antti Kivilahti and I approve this commit.
We have been using the Swagger2.0-driven REST API on Mojolicious for 1 year now
in production and I am certain we have a pretty good idea on how to work with
the limitations of Swagger2.0

Signed-off-by: Johanna Raisa <johanna.raisa@gmail.com>
My name is Johanna Räisä and I approve this commit.
We have been using Swagger2.0-driven REST API in production successfully.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/devel/minifySwagger.pl [new file with mode: 0644]