Output Files
Output Directory
oapie parse writes generated files into:
./outputThe directory is created automatically if it does not exist.
Formats
pretty
Human-readable text output.
File extension:
.txtjson
JSON output with no extra formatting.
File extension:
.jsonjs
An ES module exporting the payload as the default export.
File extension:
.jsJavaScript output is formatted with Prettier before it is written.
File Naming
Remote URLs and local paths are sanitized into safe file names. When --shape=openapi is used, OAPIE inserts .openapi before the extension.
Examples:
https://maplerad.dev/reference/create-a-customer+--shape=openapi --output=jsonoutput/https_maplerad_dev_reference_create-a-customer.openapi.json./saved-page.html+--shape=raw --output=jsoutput/saved-page_html.js
SDK Package Output
oapie generate sdk emits a package scaffold into the selected output directory.
Example:
oapie generate sdk https://maplerad.dev/reference/create-a-customer \
--dir=./output/sdk \
--crawl \
--output-mode=bothTypical generated files include:
README.mdpackage.jsonsrc/Schema.tssrc/index.tssrc/Core.tsin class-enabled modessrc/ApiBinder.tsin class-enabled modessrc/BaseApi.tsin class-enabled modessrc/Apis/*in class-enabled modestests/exports.test.ts
The output mode determines whether the package contains runtime-only entrypoints, class-based entrypoints, or both.
See SDK Generation for the full package layout and mode behavior.