code: public void run( String[] args ) throws Exception {
  
  		// Check
  		File baseDirectory = null;
  		if( args.length != 1
  				|| ! (baseDirectory = new File( args[ 0 ])).exists())
  			throw new RuntimeException( "The path of the module's directory was expected as an argument." );
  
  		// Validate
  		String[] filesToValidate = {
  			"target/docs-rest-api/apidocs/ui/swagger.json",
  			"target/docs-rest-api/apidocs/ui/swagger-websocket.json"
  		};
  
  		for( String path : filesToValidate ) {
  			File f = new File( baseDirectory, path );
  			if( ! f.exists())
  				throw new RuntimeException( path + " was not found." );
  
  			validate( f );
  		}
  	}
docs: The method that does the job.
  @param args
  @throws Exception