oas2pdf

Crates.iooas2pdf
lib.rsoas2pdf
version0.0.2
created_at2025-01-30 19:51:55.701151+00
updated_at2025-02-03 21:46:52.750999+00
descriptionCreate PDF documentation from OpenAPI schemas
homepage
repositoryhttps://github.com/sciguy16/oas2pdf
max_upload_size
id1536799
size238,335
David Young (sciguy16)

documentation

README

oas2pdf

Create PDF documentation from OpenAPI schemas!

Usage

Install with cargo install --locked --git https://github.com/sciguy16/oas2pdf, then run oas2pdf --help.

To convert a YAML schema to PDF, run e.g. oas2pdf schema.yaml or oas2pdf schema.yaml --out some-other-name.pdf.

Limitations

  • This has not been tested with a wide variety of schema files - if you have a schema that doesn't work with this tool then please file a PR to add it to the samples directory
  • This currently works by templating fields from the schema directly into a Typst template. As such, it is possible for malicious schemas to read arbitrary files from the filsystem. I don't think there's a mechanism for writing files or executing shell commands, but haven't fully confirmed this. As ever, it is inadvisable to run this on schema files from untrusted sources

Licence

This project is licenced under either of

Commit count: 35

cargo fmt