code: static Swagger validate( File jsonFile ) throws Exception {
  
  		// Validate with the Swagger parser
  		SwaggerDeserializationResult res = new SwaggerParser().readWithInfo( jsonFile.getAbsolutePath(), null, true );
  		if( ! res.getMessages().isEmpty()) {
  			for( String s : res.getMessages())
  				System.out.println( s );
  
  			throw new Exception( "Errors were found in a Swagger definition: " + jsonFile.getAbsolutePath());
  		}
  
  		return res.getSwagger();
  	}
docs: Loads and validates (lightly) a Swagger definition.
  @param jsonFile the JSon file to parse
  @return the Swagger definition
  @throws Exception if something went wrong