mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Add failing test showing Psych errors
This commit is contained in:
@@ -48,6 +48,8 @@ module Rswag
|
||||
|
||||
def pretty_generate(doc)
|
||||
if @config.swagger_format == :yaml
|
||||
# NOTE: Yaml will quite happily embed ruby-only classes such as symbols.
|
||||
# clean_doc = stringify(doc)
|
||||
YAML.dump(doc)
|
||||
else # config errors are thrown in 'def swagger_format', no throw needed here
|
||||
JSON.pretty_generate(doc)
|
||||
|
||||
Reference in New Issue
Block a user