Adding yaml as option for generator

New installations will get :yaml as it's default with openapi 3 as the
version. Old installations will have the key missing and will default
to :json with an easy upgrade path.
This commit is contained in:
Greg Myers
2019-11-02 10:45:35 +00:00
parent 2cf6812ae0
commit 73b84101cc
4 changed files with 41 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ module Rswag
c.add_setting :swagger_root
c.add_setting :swagger_docs
c.add_setting :swagger_dry_run
c.add_setting :swagger_format
c.extend ExampleGroupHelpers, type: :request
c.include ExampleHelpers, type: :request
end