Sign inSign up

jdef/raml-java-parser

By jdef

•Updated about 10 years ago

Run raml-java-parser on a file or directory

Image
0

988

jdef/raml-java-parser repository overview

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")
}

Tag summary

Content type

Image

Digest

Size

66.2 MB

Last updated

about 10 years ago

docker pull jdef/raml-java-parser