Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (21 loc) · 580 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 580 Bytes

AMF CLI Docker image

AMF CLI in a container

Usage

docker run mskrajnowski/amf-cli [AMF_OPTIONS]

Example

Translate RAML 1.0 to OpenAPI 3.0

docker run \
    --rm \
    --volume "$(realpath example/api):/tmp/example" \
    --workdir /tmp/example \
    mskrajnowski/amf-cli \
    translate api.raml \
    --format-in "RAML 1.0" \
    --media-type-in "application/yaml" \
    --format-out "OAS 3.0" \
    --media-type-out "application/yaml" \
    --resolve 'true'