Contributing
Hacking
-
Clone the repository and install dependencies, for example:
cpanm --installdeps .or
cpanm --installdeps .afterperl Makefile.PLif you preferMakefile.PLresolution. -
Run the test suite before submitting changes:
rm -rf blib cover_db prove -lr t(
-rincludest/unit/.) The same set runs asmake testafterperl Makefile.PL. If ablib/directory is present from a previousmake, Perl may load outdated modules from it instead oflib/— removeblib/before testing or coverage. -
Fixtures live under
t/data/(e.g.minimal.jsonfor the JSON loader,schema_kitchen_sink.yamlfor diverse model properties). Focused unit tests are int/unit/(Writer,Spec, …). Add more fixtures to widen integration tests; add mocks only where isolating one layer is clearer than another YAML. -
Optional: check POD syntax:
prove -l t/06-pod.t
Preparing a CPAN release (maintainers)
-
Update
Changes, bump$VERSIONinlib/Modern/OpenAPI/Generator.pmif needed. -
Update
Makefile.PLMETA_MERGErepository / bugtracker URLs if the GitHub location changes. -
Clean and verify:
rm -rf blib cover_db perl Makefile.PL make make test make manifest # refresh MANIFEST from MANIFEST.SKIP make distcheck -
Build the tarball:
make dist -
Upload the
Modern-OpenAPI-Generator-*.tar.gzto PAUSE. -
Tag the release in git (version matching
$VERSION).