diff --git a/lib/views/swagger2.js b/lib/views/swagger2.js
index <HASH>..<HASH> 100644
--- a/lib/views/swagger2.js
+++ b/lib/views/swagger2.js
@@ -4,7 +4,7 @@ import YAML from 'yamljs';
 import jsonfile from 'jsonfile';
 
 const loadFile = function (path) {
-  if (path.match(/\.yml$/)) {
+  if (path.match(/\.ya?ml$/)) {
     return YAML.load(path);
   }
Support for .yaml file extension

You may have `.yaml` for YAML file.

The current extension only supports `.yml`



I wonder if trying to load the file as yaml and acting on failure would be better (?).