mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Allow ".yaml" and ".yml" filename endings for yaml
This commit is contained in:
@@ -31,7 +31,7 @@ module Rswag
|
||||
private
|
||||
|
||||
def parse_file(filename)
|
||||
if /\.yml$/ === filename
|
||||
if /\.ya?ml$/ === filename
|
||||
load_yaml(filename)
|
||||
else
|
||||
load_json(filename)
|
||||
|
||||
Reference in New Issue
Block a user