MediaMath / catalyst-controller-swagger

5 stars 5 forks source link

Can we publish this module to CPAN? #8

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

Our company would like to try this library. But compared to installing from Github, we would rather prefer installing from CPAN. Libraries from CPAN are better known by the Perl world, thus could have less chance to get namespace changing or collision with other libraries in future.

Besides, I see you are having "Swagger" at the top level namespace. I wonder if it could be better to move it into some namespace like Catalyst::Controller::Swagger::Spec?

Thanks!

iynehz commented 7 years ago

+1

btw, I just see that Swagger has renamed to OpenAPI. Mojolicious and Dancer support can be done via https://metacpan.org/release/JSON-Validator I am new to Swagger/OpenAPI but I wonder if that one can be utilized or not.

iynehz commented 7 years ago

I ended up using Mojolicious::Lite + Mojolicious::Plugin::OpenAPI for my new rest API. I feel Mojolicious::Lite easier than Catalyst::Controller::REST in creating REST api. And with Plack it's possible to integrate into a Catalyst part and a Mojo part into one web application.