Version 0.12 contains a mojo command which can validate and generate pod. It also contains a webserver which allow you to view/edit the spec in your browser:
$ mojo swagger2 edit petstore.json --listen http://*:5000 Unfortunately, I had to disable the "not" schema validation in 0.12 while fixing another bug with $ref's that was not expanded. Patches are welcome to get it back in. (I will look at it as soon as I have the opportunity) On Friday, December 12, 2014 7:42:53 AM UTC+1, Rajasekar Venkatesan wrote: > > Hi, > > > On Tuesday, 9 December 2014 20:32:11 UTC+5:30, Jan Henning Thorsen wrote: >> >> Hi, >> >> I'm working on a new module that takes advantage of the Swagger2 API >> documentation format. >> >> https://metacpan.org/release/Swagger2 >> https://metacpan.org/release/JHTHORSEN/Swagger2-0.03 (in case 0.03 isn't >> visible from the line above) >> >> Features: >> * Automatic route generation >> * Input/output validation in your Mojoliicous applicaiton >> * Swagger documentation to Perl documentation (POD) >> * JSON Schema validation >> >> Plans: >> * Add Swagger::Client which wraps around Mojo::UserAgent and enables >> input/output validation >> >> Any feedback/ideas are very much appreciated. >> > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
