Run raml-java-parser on a file or directory
988
RAML Java Parser comes from: https://github.com/raml-org/raml-java-parser
Below is a shell func that helps to invoke the parser. It assumes that if you specify a file all of its dependencies are siblings or children of the current directory.
function validate_raml() {
stat "$1" >/dev/null || return 1
local obj=$1
local vmount=$(dirname $(realpath "$obj")):/src/
test -d "$obj" && \
docker run --rm -ti -v "$vmount" jdef/raml-java-parser || \
docker run --rm -ti -v "$vmount" jdef/raml-java-parser /src/$(basename "$obj")
}
Content type
Image
Digest
Size
66.2 MB
Last updated
about 10 years ago
docker pull jdef/raml-java-parser