mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-23 06:16:42 +00:00
Allow ".yaml" and ".yml" filename endings for yaml
This commit is contained in:
parent
51b47f32e8
commit
9eb2d3ddec
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user