sv-tools/Roas OpenAPI Action

Validate and convert OpenAPI specs and Overlay documents with roas

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
subcommandroas subcommand: validate, convert, overlay validate, overlay convert, overlay apply, arazzo validate, or arazzo convertvalidate
filePositional input: the OpenAPI spec (validate, convert, overlay apply), the Overlay document (overlay validate, overlay convert), or the Arazzo description (arazzo validate, arazzo convert), as JSON or YAMLyes
fromForce input spec version (e.g. v2, v3.0, v3.1, v3.2). Spec validate/convert only.
toTarget version. For convert: a spec version (e.g. v3.1, v3.2). For overlay convert: an overlay version (v1.0, v1.1). For arazzo convert: an arazzo version (v1.0, v1.1). Required for convert, overlay convert, and arazzo convert.
mergeNewline-separated list of additional specs to merge on top of the base (convert only). Each source is upconverted to the target version, then merged in incoming-order.
merge-optionsWhitespace-separated merge options (convert only, requires merge): base-wins, error-on-conflict, deep-merge-object-schemas, merge-info, replace-lists-when-empty.
applyNewline-separated list of Overlay documents to apply on top of the converted/merged spec (convert only). Applied in order, last in the pipeline (after merge, before collapse).
overlayNewline-separated list of Overlay documents to apply to the target spec (overlay apply only). Applied in order. Required when subcommand=overlay apply.
apply-optionsWhitespace-separated overlay apply options (convert with apply, or overlay apply): error-on-zero-match, error-on-mixed-kind-match.
collapseLift inline components into the root bag and replace call sites with $refs (convert only).false
loadWhitespace-separated $ref loaders to enable: file, http
ignoreWhitespace-separated checks to skip. validate: validation checks. overlay validate / arazzo validate: empty-info-title, empty-info-version.
formatForce input format: json or yaml
output-formatForce output format for convert, overlay convert, overlay apply, and arazzo convert: json or yaml
output-fileWrite command output to this path instead of stdout
printEcho the parsed spec/overlay/description on stdout (validate, overlay validate, and arazzo validate only)false

no outputs